Prepare v0.7.2 for release

This commit is contained in:
Noah 2021-07-19 21:20:22 -07:00
parent 89c1e58e69
commit a90cb34ab6

View File

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