mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 15:00:48 +00:00
Added a check to fix M1TTY's Envsuit incompatibility with NVG goggles
This commit is contained in:
parent
5cf06f2055
commit
62116cfb32
@ -78,7 +78,13 @@ public class ArmorEnvsuit extends ArmorFSBPowered {
|
||||
player.motionY += vec.yCoord;
|
||||
player.motionZ += vec.zCoord;
|
||||
} else {
|
||||
if(!world.isRemote) {
|
||||
boolean canRemoveNightVision = true;
|
||||
ItemStack helmet = player.inventory.armorInventory[3];
|
||||
if (helmet.getItem() == ModItems.night_vision) {
|
||||
canRemoveNightVision = false;
|
||||
}
|
||||
|
||||
if(!world.isRemote && canRemoveNightVision) {
|
||||
player.removePotionEffect(Potion.nightVision.id);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user