Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/net/adventurez/item/armor/StoneGolemArmor.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public void inventoryTick(ItemStack stack, World world, Entity entity, int slot,
if (stack.getItem() == ItemInit.STONE_GOLEM_CHESTPLATE) {
NbtCompound tag = stack.getNbt();
if (tag != null && tag.contains("armor_time")) {
if (tag.getBoolean("activating_armor") && tag.getInt("armor_time") + (ConfigInit.CONFIG.stone_golem_armor_effect_duration * 2) < (int) world.getTime()) {
tag.putBoolean("activating_armor", false);
}
if (tag.getBoolean("activating_armor") && tag.getInt("armor_time") + ConfigInit.CONFIG.stone_golem_armor_effect_duration < (int) world.getTime()) {
entity.setFireTicks(0);
tag.putBoolean("activating_armor_visuals", false);
}
if (tag.getBoolean("activating_armor") && tag.getInt("armor_time") + (ConfigInit.CONFIG.stone_golem_armor_effect_duration * 2) < (int) world.getTime()) {
tag.putBoolean("activating_armor", false);
}
}
}
}
Expand Down Expand Up @@ -138,4 +138,4 @@ public static boolean fullGolemArmor(PlayerEntity playerEntity) {
return false;
}

}
}