Fix bork hoppers [1.16.1]

This commit is contained in:
Ivan Pekov 2020-08-16 14:07:06 +03:00 committed by GitHub
parent e3ff8b42c3
commit 46e3206fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ index 3ff61141aede4b5a09bf83153222de0d14db5ad0..e386ffda975b8a0adc218fd47a02e5b3
- return b(this.getWorld(), this.position.shift(enumdirection));
+ IInventory tmp = b(this.getWorld(), this.position.shift(enumdirection), this.cachedPushAir);
+ // Yatopia start
+ if (tmp != null && !(tmp instanceof IWorldInventory) && !(tmp instanceof Entity)) {
+ if (tmp != null && !(tmp instanceof Entity)) {
+ this.cachedPush = tmp;
+ } else {
+ if(tmp == null) {