mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-19 19:59:37 +00:00
Fixed orphan detection.
This commit is contained in:
1 parent
aa554fc9f6
commit
4e38b42796
2 files changed
+2
-1
No files matched your search
@@ -135,7 +135,7 @@ public enum TileEntityManager {
|
||||
|
||||
Block block = world.getBlock(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord);
|
||||
if (block == Blocks.air || block == null
|
||||
|| block.hasTileEntity()
|
||||
|| !block.hasTileEntity()
|
||||
|| world.getTileEntity(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord) == null
|
||||
|| world.getTileEntity(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord).getClass() != tileEntity.getClass()){
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import cpw.mods.fml.relauncher.Side;
|
||||
public class Helpers {
|
||||
public static Side getEffectiveSide(){
|
||||
Thread thr = Thread.currentThread();
|
||||
|
||||
if ((thr.getName().equals("Server thread")) || (thr.getName().contains("Netty IO")))
|
||||
{
|
||||
return Side.SERVER;
|
||||
|
||||
Reference in new issue
Block a user