mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-26 13:09:22 +01:00
Magnet ring now only works in survival/adventure; Closes #903
This commit is contained in:
parent
22f9f4440e
commit
fa25cbf7b0
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class ItemMagnetRing extends ItemEnergy{
|
|||
public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5){
|
||||
if(entity instanceof EntityPlayer && !world.isRemote && !ItemUtil.isEnabled(stack)){
|
||||
EntityPlayer player = (EntityPlayer)entity;
|
||||
|
||||
if(player.isCreative() || player.isSpectator()) return;
|
||||
if(!entity.isSneaking()){
|
||||
//Get all the Items in the area
|
||||
int range = 5;
|
||||
|
|
Loading…
Reference in a new issue