MineColonies

MineColonies

53M Downloads

MC Colony Delete command throws null pointer

Asherslab opened this issue ยท 4 comments

commented

Steps to reproduce the problem

  1. execute command

https://gist.github.com/Asherslab/f9aa56c68247bbbce593f63166ed85e9

commented

The error is because the command's senderEntity is null. Any ideas why that might be the case? Is this being run by a command block?

    final Entity senderEntity = sender.getCommandSenderEntity();
    senderEntity.sendMessage(new TextComponentString(DELETE_COLONY_TASK_SCHEDULED));
commented

@mkienenb you were correct in slack, i was running the command via console

commented

So, i think this is fixed now, so i'm going to close this

commented

No, it's not fixed until someone merges pr #2373. Not sure what the hold-up on that is.