mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-19 03:39:20 +00:00
Only allow sensible items in Socket and Teleposer
This commit is contained in:
1 parent
252555cb3e
commit
f7de2ddef5
2 files changed
+3
-2
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package WayofTime.alchemicalWizardry.common.tileEntity;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade;
|
||||
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
@@ -132,6 +133,6 @@ public class TESocket extends TEInventory
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int slot, ItemStack itemstack)
|
||||
{
|
||||
return slot == 0;
|
||||
return itemstack.getItem() instanceof ArmourUpgrade;
|
||||
}
|
||||
}
|
||||
@@ -246,7 +246,7 @@ public class TETeleposer extends TEInventory
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int slot, ItemStack itemstack)
|
||||
{
|
||||
return slot == 0;
|
||||
return itemstack.getItem() instanceof TelepositionFocus;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user