mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Patches that applied with little to no functional changes.
This commit is contained in:
1 parent
01722c6c3c
commit
fd1f09a34e
52 files changed
+560
-547
No files matched your search
@@ -35,8 +35,8 @@
|
||||
|
||||
++this.age;
|
||||
|
||||
- if (this.age >= 6000)
|
||||
+ if (this.age >= lifespan)
|
||||
- if (!this.worldObj.isRemote && this.age >= 6000)
|
||||
+ if (!this.worldObj.isRemote && this.age >= lifespan)
|
||||
+ {
|
||||
+ ItemExpireEvent event = new ItemExpireEvent(this, (item.getItem() == null ? 6000 : item.getItem().getEntityLifespan(item, worldObj)));
|
||||
+ if (MinecraftForge.EVENT_BUS.post(event))
|
||||
@@ -53,7 +53,7 @@
|
||||
{
|
||||
this.setDead();
|
||||
}
|
||||
@@ -208,6 +231,7 @@
|
||||
@@ -215,6 +238,7 @@
|
||||
{
|
||||
par1NBTTagCompound.setShort("Health", (short)((byte)this.health));
|
||||
par1NBTTagCompound.setShort("Age", (short)this.age);
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
if (this.item != null)
|
||||
{
|
||||
@@ -225,10 +249,15 @@
|
||||
@@ -232,10 +256,15 @@
|
||||
NBTTagCompound var2 = par1NBTTagCompound.getCompoundTag("Item");
|
||||
this.item = ItemStack.loadItemStackFromNBT(var2);
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -238,9 +267,21 @@
|
||||
@@ -245,9 +274,21 @@
|
||||
{
|
||||
if (!this.worldObj.isRemote)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user