-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
1,823 additions
and
1,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 35 additions & 5 deletions
40
patches/minecraft/net/minecraft/src/EntityMinecartContainer.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,50 @@ | ||
--- a/minecraft/net/minecraft/src/EntityMinecartContainer.java | ||
+++ b/minecraft/net/minecraft/src/EntityMinecartContainer.java | ||
@@ -44,7 +44,7 @@ | ||
@@ -30,9 +30,6 @@ | ||
|
||
if (var3 != null) | ||
{ | ||
- float var4 = this.rand.nextFloat() * 0.8F + 0.1F; | ||
- float var5 = this.rand.nextFloat() * 0.8F + 0.1F; | ||
- float var6 = this.rand.nextFloat() * 0.8F + 0.1F; | ||
|
||
while (var3.stackSize > 0) | ||
{ | ||
@@ -44,8 +41,8 @@ | ||
} | ||
|
||
var3.stackSize -= var7; | ||
- EntityItem var8 = new EntityItem(this.worldObj, this.posX + (double)var4, this.posY + (double)var5, this.posZ + (double)var6, new ItemStack(var3.itemID, var7, var3.getItemDamage())); | ||
+ EntityItem var8 = (EntityItem) EntityList.createEntityOfType(EntityItem.class, this.worldObj, this.posX + (double)var4, this.posY + (double)var5, this.posZ + (double)var6, new ItemStack(var3.itemID, var7, var3.getItemDamage())); | ||
float var9 = 0.05F; | ||
- float var9 = 0.05F; | ||
+ EntityItem var8 = (EntityItem) EntityList.createEntityOfType(EntityItem.class, this.worldObj, this.posX, this.posY, this.posZ, new ItemStack(var3.itemID, var7, var3.getItemDamage())); | ||
+ float var9 = 0.08F; | ||
var8.motionX = (double)((float)this.rand.nextGaussian() * var9); | ||
var8.motionY = (double)((float)this.rand.nextGaussian() * var9 + 0.2F); | ||
@@ -206,7 +206,7 @@ | ||
var8.motionZ = (double)((float)this.rand.nextGaussian() * var9); | ||
@@ -192,9 +189,6 @@ | ||
|
||
if (var2 != null) | ||
{ | ||
- float var3 = this.rand.nextFloat() * 0.8F + 0.1F; | ||
- float var4 = this.rand.nextFloat() * 0.8F + 0.1F; | ||
- float var5 = this.rand.nextFloat() * 0.8F + 0.1F; | ||
|
||
while (var2.stackSize > 0) | ||
{ | ||
@@ -206,14 +200,14 @@ | ||
} | ||
|
||
var2.stackSize -= var6; | ||
- EntityItem var7 = new EntityItem(this.worldObj, this.posX + (double)var3, this.posY + (double)var4, this.posZ + (double)var5, new ItemStack(var2.itemID, var6, var2.getItemDamage())); | ||
+ EntityItem var7 = (EntityItem) EntityList.createEntityOfType(EntityItem.class, this.worldObj, this.posX + (double)var3, this.posY + (double)var4, this.posZ + (double)var5, new ItemStack(var2.itemID, var6, var2.getItemDamage())); | ||
+ EntityItem var7 = (EntityItem) EntityList.createEntityOfType(EntityItem.class, this.worldObj, this.posX , this.posY, this.posZ, new ItemStack(var2.itemID, var6, var2.getItemDamage())); | ||
|
||
if (var2.hasTagCompound()) | ||
{ | ||
var7.getEntityItem().setTagCompound((NBTTagCompound)var2.getTagCompound().copy()); | ||
} | ||
|
||
- float var8 = 0.05F; | ||
+ float var8 = 0.08F; | ||
var7.motionX = (double)((float)this.rand.nextGaussian() * var8); | ||
var7.motionY = (double)((float)this.rand.nextGaussian() * var8 + 0.2F); | ||
var7.motionZ = (double)((float)this.rand.nextGaussian() * var8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.