Prepare v0.7.2 for release

master
Noah 2021-07-19 21:20:22 -07:00
parent 89c1e58e69
commit a90cb34ab6
1 changed files with 7 additions and 1 deletions

View File

@ -8,9 +8,15 @@ function main() {
Self.SetHitbox(0, 0, size, size);
Events.OnCollide(function (e) {
// Ignore events from neighboring Boxes.
if (e.Actor.Actor.Filename === "box.doodad") {
return false;
}
if (e.Actor.IsMobile() && e.InHitbox) {
var overlap = e.Overlap;
if (overlap.Y === 0) {
if (overlap.Y === 0 && !(overlap.X === 0 && overlap.W < 5) && !(overlap.X === size)) {
// Standing on top, ignore.
return false;
} else if (overlap.Y === size) {