mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 02:28:42 +00:00
haz sys hotfix
This commit is contained in:
parent
2b1977cec4
commit
7ae0499e04
@ -225,9 +225,13 @@ public class HazardSystem {
|
||||
|
||||
public static void updateDroppedItem(EntityItem entity) {
|
||||
|
||||
List<HazardEntry> hazards = getHazardsFromStack(entity.getEntityItem());
|
||||
ItemStack stack = entity.getEntityItem();
|
||||
|
||||
if(entity.isDead || stack == null || stack.getItem() == null || stack.stackSize <= 0) return;
|
||||
|
||||
List<HazardEntry> hazards = getHazardsFromStack(stack);
|
||||
for(HazardEntry entry : hazards) {
|
||||
entry.type.updateEntity(entity, HazardModifier.evalAllModifiers(entity.getEntityItem(), null, entry.baseLevel, entry.mods));
|
||||
entry.type.updateEntity(entity, HazardModifier.evalAllModifiers(stack, null, entry.baseLevel, entry.mods));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user