Magnet ring now only works in survival/adventure; Closes #903

This commit is contained in:
Shadows_of_Fire 2017-08-22 20:06:34 -04:00
parent 22f9f4440e
commit fa25cbf7b0

View file

@ -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;