Upstream Paper

This commit is contained in:
Sotr
2019-03-07 12:42:37 +08:00
parent cadd3f71c0
commit 956e1fe461
8 changed files with 40 additions and 8 deletions

View File

@@ -38,4 +38,14 @@ public class CraftVex extends CraftMonster implements Vex {
public EntityType getType() {
return EntityType.VEX;
}
@Override
public boolean isCharging() {
return getHandle().dA();
}
@Override
public void setCharging(boolean charging) {
getHandle().a(charging);
}
}

View File

@@ -128,7 +128,7 @@ public class InventoryWrapper implements IInventory {
List<ItemStack> items = new ArrayList<ItemStack>(size);
for (int i = 0; i < size; i++) {
items.set(i, getItem(i));
items.add(getItem(i));
}
return items;