Added shipCommandFailure LUA event

This commit is contained in:
LemADEC 2022-03-06 19:03:24 +01:00
parent 8b97bc7a2c
commit 78c2222f97

View file

@ -597,6 +597,7 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
if (!success) {
Commons.messageToAllPlayersInArea(this, reason);
stateCurrent = EnumShipCoreState.IDLE;
sendEvent("shipCommandFailure", reason.getUnformattedText());
}
for (final BlockPos blockPos : blockPosShipControllers) {
if (!world.isBlockLoaded(blockPos, false)) {