Workaround for coil state
Added quick & dirty workaround for cloaking coil not showing as enabled when resizing field
This commit is contained in:
parent
e7f08e09b1
commit
1290e6f61b
1 changed files with 2 additions and 1 deletions
|
@ -107,11 +107,12 @@ public class TileEntityCloakingDeviceCore extends WarpEnergyTE implements IPerip
|
|||
} else {// enabled, cloaking and valid
|
||||
if (hasEnoughPower) {// enabled, cloaking and able to
|
||||
// IDLE
|
||||
// Refresh the field !!! LemTest 2014-07-12
|
||||
// Refresh the field FIXME: workaround to re-synchronize players
|
||||
CloakedArea area = WarpDrive.cloaks.getCloakedArea(worldObj, xCoord, yCoord, zCoord);
|
||||
if (area != null) {
|
||||
area.sendCloakPacketToPlayersEx(false); // recloak field
|
||||
}
|
||||
setCoilsState(true);
|
||||
} else {// loosing power
|
||||
WarpDrive.debugPrint("" + this + " Low power, cloak field is collapsing...");
|
||||
disableCloakingField();
|
||||
|
|
Loading…
Reference in a new issue