Some clean-up

This commit is contained in:
Toshayo 2023-06-21 22:45:55 +02:00
parent 7d8ee8ce24
commit 71814dae87
No known key found for this signature in database
GPG Key ID: 7DC46644B561B1B4
3 changed files with 3 additions and 10 deletions

View File

@ -19,6 +19,6 @@ public interface IDoor {
CLOSED, CLOSED,
OPEN, OPEN,
CLOSING, CLOSING,
OPENING; OPENING
} }
} }

View File

@ -420,6 +420,4 @@ public abstract class DoorDecl {
f[2] = z; f[2] = z;
return f; return f;
} }
;
} }

View File

@ -54,9 +54,7 @@ public class TileEntityDoorGeneric extends TileEntityLockableBase implements IAn
} }
} }
if(worldObj.isRemote) { if(!worldObj.isRemote) {
} else {
BlockPos pos = new BlockPos(this); BlockPos pos = new BlockPos(this);
@ -284,10 +282,7 @@ public class TileEntityDoorGeneric extends TileEntityLockableBase implements IAn
//Ah yes piggy backing on this packet //Ah yes piggy backing on this packet
@Override @Override
public void setTextureState(byte tex){ public void setTextureState(byte tex){
if(tex > 0) shouldUseBB = tex > 0;
shouldUseBB = true;
else
shouldUseBB = false;
} }
public int getSkinIndex() { public int getSkinIndex() {