DevotedMC / Bastion

Minecraft plugin that allows players to place Citadel-reinforced blocks that stop block placement or enderpearl teleportation. Updated for Spigot 1.12
http://www.devotedmc.com
Other
2 stars 10 forks source link

Cancelling of Bastion Create improper handling #37

Closed ProgrammerDan closed 7 years ago

ProgrammerDan commented 7 years ago

Modify the following code segments:

https://github.com/DevotedMC/Bastion/blob/master/src/main/java/isaac/bastion/listeners/BastionInteractListener.java#L124

https://github.com/DevotedMC/Bastion/blob/master/src/main/java/isaac/bastion/listeners/BastionInteractListener.java#L163

and anywhere else storage.createBastion is called.

Modify where if false is returned, properly return the bastion to the Pending list, as here:

https://github.com/DevotedMC/Bastion/blob/master/src/main/java/isaac/bastion/listeners/BastionInteractListener.java#L143

so that player can then retrieve placed bastion or have someone else reinforce it, etc.