Fix buckets, need to rethink for bukkit compatibility.
This commit is contained in:
parent
fbae118a2f
commit
49f263eb63
1 changed files with 4 additions and 3 deletions
|
@ -133,7 +133,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -318,29 +366,54 @@
|
@@ -318,29 +366,55 @@
|
||||||
*/
|
*/
|
||||||
public boolean activateBlockOrUseItem(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
|
public boolean activateBlockOrUseItem(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
|
||||||
{
|
{
|
||||||
|
@ -202,15 +202,16 @@
|
||||||
+ if (par3ItemStack.stackSize <= 0) ForgeEventFactory.onPlayerDestroyItem(thisPlayerMP, par3ItemStack);
|
+ if (par3ItemStack.stackSize <= 0) ForgeEventFactory.onPlayerDestroyItem(thisPlayerMP, par3ItemStack);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
+ /* Re-enable if this causes bukkit incompatibility, or re-write client side to only send a single packet per right click.
|
||||||
+ if (par3ItemStack != null && ((!result && event.useItem != Event.Result.DENY) || event.useItem == Event.Result.ALLOW))
|
+ if (par3ItemStack != null && ((!result && event.useItem != Event.Result.DENY) || event.useItem == Event.Result.ALLOW))
|
||||||
+ {
|
+ {
|
||||||
+ this.tryUseItem(thisPlayerMP, par2World, par3ItemStack);
|
+ this.tryUseItem(thisPlayerMP, par2World, par3ItemStack);
|
||||||
+ }
|
+ }*/
|
||||||
+ return result;
|
+ return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -350,4 +423,13 @@
|
@@ -350,4 +424,13 @@
|
||||||
{
|
{
|
||||||
this.theWorld = par1WorldServer;
|
this.theWorld = par1WorldServer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue