diff options
| author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2022-01-26 17:59:04 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-26 18:59:04 +0100 | 
| commit | 22bba6ee4da0b62b8b41ca9f0e70c6d6104d9cd8 (patch) | |
| tree | a9f053a3ad6f2e394615b1cce4fed5c373862bea /src/main/java/gregtech | |
| parent | 12bb70ba1b378822c7f38246e0b3a68a5633528b (diff) | |
| download | GT5-Unofficial-22bba6ee4da0b62b8b41ca9f0e70c6d6104d9cd8.tar.gz GT5-Unofficial-22bba6ee4da0b62b8b41ca9f0e70c6d6104d9cd8.tar.bz2 GT5-Unofficial-22bba6ee4da0b62b8b41ca9f0e70c6d6104d9cd8.zip | |
Make Repellator stop slimes spawning (#896)
Diffstat (limited to 'src/main/java/gregtech')
| -rw-r--r-- | src/main/java/gregtech/api/util/GT_SpawnEventHandler.java | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java b/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java index 0e29950dbd..bd279f73e2 100644 --- a/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java +++ b/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java @@ -5,6 +5,7 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;  import gregtech.api.metatileentity.BaseMetaTileEntity;  import gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_MonsterRepellent;  import net.minecraft.entity.EnumCreatureType; +import net.minecraft.entity.monster.EntitySlime;  import net.minecraft.tileentity.TileEntity;  import net.minecraftforge.common.MinecraftForge;  import net.minecraftforge.event.entity.living.LivingSpawnEvent.CheckSpawn; @@ -25,7 +26,7 @@ public class GT_SpawnEventHandler {          if (event.getResult() == Event.Result.ALLOW) {              return;          } -        if (event.entityLiving.isCreatureType(EnumCreatureType.monster, false)) { +        if (event.entityLiving.isCreatureType(EnumCreatureType.monster, false) || event.entityLiving instanceof EntitySlime) {              for (int[] rep : mobReps) {                  if (rep[3] == event.entity.worldObj.provider.dimensionId) {                      TileEntity tTile = event.entity.worldObj.getTileEntity(rep[0], rep[1], rep[2]); | 
