mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-28 23:38:53 +00:00
Changes to Item Binding
Allows event to cancel the binding (rather than set key to "" which had the same effect but was messy) Prevents binding by Fake Players
This commit is contained in:
1 parent
aa33b6b8ff
commit
976599afe0
50 files changed
+152
-268
No files matched your search
@@ -54,11 +54,12 @@ public class TelepositionFocus extends EnergyItems
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
EnergyItems.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer);
|
||||
|
||||
if (par3EntityPlayer.isSneaking())
|
||||
if (EnergyItems.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer))
|
||||
{
|
||||
return par1ItemStack;
|
||||
if (par3EntityPlayer.isSneaking())
|
||||
{
|
||||
return par1ItemStack;
|
||||
}
|
||||
}
|
||||
return par1ItemStack;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user