mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-09 17:12:00 +01:00
SPIGOT-3513: Correctly set size for freshly spawned Minecarts
By: md_5 <git@md-5.net>
This commit is contained in:
parent
0d13d3970d
commit
3c5675eaa3
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
public abstract class EntityMinecartContainer extends EntityMinecartAbstract implements ITileInventory, ILootable {
|
public abstract class EntityMinecartContainer extends EntityMinecartAbstract implements ITileInventory, ILootable {
|
||||||
|
|
||||||
@@ -11,6 +18,42 @@
|
@@ -11,15 +18,51 @@
|
||||||
private MinecraftKey c;
|
private MinecraftKey c;
|
||||||
private long d;
|
private long d;
|
||||||
|
|
||||||
@ -56,7 +56,18 @@
|
|||||||
+
|
+
|
||||||
public EntityMinecartContainer(World world) {
|
public EntityMinecartContainer(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
this.items = NonNullList.a(36, ItemStack.a);
|
- this.items = NonNullList.a(36, ItemStack.a);
|
||||||
|
+ this.items = NonNullList.a(this.getSize(), ItemStack.a); // CraftBukkit - SPIGOT-3513
|
||||||
|
this.b = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntityMinecartContainer(World world, double d0, double d1, double d2) {
|
||||||
|
super(world, d0, d1, d2);
|
||||||
|
- this.items = NonNullList.a(36, ItemStack.a);
|
||||||
|
+ this.items = NonNullList.a(this.getSize(), ItemStack.a); // CraftBukkit - SPIGOT-3513
|
||||||
|
this.b = true;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -93,7 +136,7 @@
|
@@ -93,7 +136,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user