Added shipCommandFailure LUA event
This commit is contained in:
parent
8b97bc7a2c
commit
78c2222f97
1 changed files with 1 additions and 0 deletions
|
@ -597,6 +597,7 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
|
||||||
if (!success) {
|
if (!success) {
|
||||||
Commons.messageToAllPlayersInArea(this, reason);
|
Commons.messageToAllPlayersInArea(this, reason);
|
||||||
stateCurrent = EnumShipCoreState.IDLE;
|
stateCurrent = EnumShipCoreState.IDLE;
|
||||||
|
sendEvent("shipCommandFailure", reason.getUnformattedText());
|
||||||
}
|
}
|
||||||
for (final BlockPos blockPos : blockPosShipControllers) {
|
for (final BlockPos blockPos : blockPosShipControllers) {
|
||||||
if (!world.isBlockLoaded(blockPos, false)) {
|
if (!world.isBlockLoaded(blockPos, false)) {
|
||||||
|
|
Loading…
Reference in a new issue