mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
@@ -2,13 +2,13 @@
|
||||
+++ b/net/minecraft/server/EntityAgeable.java
|
||||
@@ -10,6 +10,7 @@
|
||||
protected int c;
|
||||
private float bx = -1.0F;
|
||||
private float by;
|
||||
private float by = -1.0F;
|
||||
private float bz;
|
||||
+ public boolean ageLocked; // CraftBukkit
|
||||
|
||||
public EntityAgeable(World world) {
|
||||
super(world);
|
||||
@@ -28,13 +29,16 @@
|
||||
@@ -28,13 +29,18 @@
|
||||
if (entityageable != null) {
|
||||
entityageable.setAgeRaw(-24000);
|
||||
entityageable.setPositionRotation(this.locX, this.locY, this.locZ, 0.0F, 0.0F);
|
||||
@@ -20,13 +20,15 @@
|
||||
|
||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
--itemstack.count;
|
||||
+ if (itemstack.count == 0) { // CraftBukkit - allow less than 0 stacks as "infinite"
|
||||
+ // CraftBukkit start - allow less than 0 stacks as "infinite"
|
||||
+ if (itemstack.count == 0) {
|
||||
+ entityhuman.inventory.setItem(entityhuman.inventory.itemInHandIndex, (ItemStack) null);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -97,12 +101,14 @@
|
||||
@@ -97,12 +103,14 @@
|
||||
super.b(nbttagcompound);
|
||||
nbttagcompound.setInt("Age", this.getAge());
|
||||
nbttagcompound.setInt("ForcedAge", this.b);
|
||||
@@ -41,7 +43,7 @@
|
||||
}
|
||||
|
||||
public void a(DataWatcherObject<?> datawatcherobject) {
|
||||
@@ -115,7 +121,7 @@
|
||||
@@ -115,7 +123,7 @@
|
||||
|
||||
public void n() {
|
||||
super.n();
|
||||
|
Reference in New Issue
Block a user