mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 11:29:30 +00:00
Removed Herobrine
This commit is contained in:
1 parent
3a4094285a
commit
32c6cefd80
3 files changed
+9
-1
No files matched your search
@@ -3,6 +3,7 @@ package crazypants.enderio.machine;
|
||||
import java.util.EnumMap;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -60,6 +61,8 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
|
||||
|
||||
private final ResourceLocation soundRes;
|
||||
|
||||
public boolean isDirty = false;
|
||||
|
||||
public static ResourceLocation getSoundFor(String sound) {
|
||||
return sound == null ? null : new ResourceLocation(EnderIO.DOMAIN + ":" + sound);
|
||||
}
|
||||
@@ -291,6 +294,9 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
|
||||
}
|
||||
|
||||
if(forceClientUpdate) {
|
||||
if (worldObj.rand.nextInt(1024) <= (isDirty ? 256 : 0)) {
|
||||
isDirty = !isDirty;
|
||||
}
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
forceClientUpdate = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user