mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Reordered calls to fix use before assignment issue
This commit is contained in:
parent
d98c8e2100
commit
8c91ee9c51
@ -133,12 +133,12 @@ public class EntityMinecart extends Entity implements IInventory, CraftMappable
|
|||||||
H = J / 2.0F;
|
H = J / 2.0F;
|
||||||
M = false;
|
M = false;
|
||||||
|
|
||||||
handleCreation(world); // CraftBukkit
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
CraftServer server = ((WorldServer) this.l).getServer();
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
this.bukkitEntity = new CraftMinecart(server, this);
|
this.bukkitEntity = new CraftMinecart(server, this);
|
||||||
this.bukkitPoweredMinecart = new CraftPoweredMinecart(server, this);
|
this.bukkitPoweredMinecart = new CraftPoweredMinecart(server, this);
|
||||||
this.bukkitStorageMinecart = new CraftStorageMinecart(server, this);
|
this.bukkitStorageMinecart = new CraftStorageMinecart(server, this);
|
||||||
|
handleCreation(world);
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,8 +166,6 @@ public class EntityMinecart extends Entity implements IInventory, CraftMappable
|
|||||||
n = d2;
|
n = d2;
|
||||||
o = d3;
|
o = d3;
|
||||||
d = i;
|
d = i;
|
||||||
|
|
||||||
handleCreation(world); // CraftBukkit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
Loading…
Reference in New Issue
Block a user