@@ -62,14 +62,14 @@
|
||||
+
|
||||
protected EntityMinecartContainer(EntityTypes<?> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
- this.itemStacks = NonNullList.a(36, ItemStack.EMPTY);
|
||||
+ this.itemStacks = NonNullList.a(this.getSize(), ItemStack.EMPTY); // CraftBukkit - SPIGOT-3513
|
||||
- this.itemStacks = NonNullList.withSize(36, ItemStack.EMPTY);
|
||||
+ this.itemStacks = NonNullList.withSize(this.getContainerSize(), ItemStack.EMPTY); // CraftBukkit - SPIGOT-3513
|
||||
}
|
||||
|
||||
protected EntityMinecartContainer(EntityTypes<?> entitytypes, double d0, double d1, double d2, World world) {
|
||||
super(entitytypes, world, d0, d1, d2);
|
||||
- this.itemStacks = NonNullList.a(36, ItemStack.EMPTY);
|
||||
+ this.itemStacks = NonNullList.a(this.getSize(), ItemStack.EMPTY); // CraftBukkit - SPIGOT-3513
|
||||
- this.itemStacks = NonNullList.withSize(36, ItemStack.EMPTY);
|
||||
+ this.itemStacks = NonNullList.withSize(this.getContainerSize(), ItemStack.EMPTY); // CraftBukkit - SPIGOT-3513
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user