mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fix cloaks blocking admin-damage like /kill
This commit is contained in:
1 parent
1feadf2835
commit
f84e09eda3
1 file changed
+1
-1
@@ -56,7 +56,7 @@ public class ItemHolyCloak extends ItemBauble implements IBaubleRender {
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPlayerDamage(LivingHurtEvent event) {
|
||||
if(event.getEntityLiving() instanceof EntityPlayer) {
|
||||
if(event.getEntityLiving() instanceof EntityPlayer && !event.getSource().canHarmInCreative()) {
|
||||
EntityPlayer player = (EntityPlayer) event.getEntityLiving();
|
||||
ItemStack belt = BaublesApi.getBaublesHandler(player).getStackInSlot(5);
|
||||
if(!belt.isEmpty() && belt.getItem() instanceof ItemHolyCloak && !isInEffect(belt)) {
|
||||
|
||||
Reference in new issue
Block a user