Bugfix: portal blocks don't get set when unhiding a gate.
This commit is contained in:
parent
a16d847234
commit
6df27c14a0
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package de.craftinc.gates.commands;
|
package de.craftinc.gates.commands;
|
||||||
|
|
||||||
|
import de.craftinc.gates.util.GateBlockChangeSender;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
|
||||||
import de.craftinc.gates.Plugin;
|
import de.craftinc.gates.Plugin;
|
||||||
@ -46,6 +47,7 @@ public class CommandUnhide extends BaseCommand
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
gate.setHidden(false);
|
gate.setHidden(false);
|
||||||
|
GateBlockChangeSender.updateGateBlocks(gate);
|
||||||
sendMessage(ChatColor.GREEN + "The gate " + gate.getId() + " is now visible.");
|
sendMessage(ChatColor.GREEN + "The gate " + gate.getId() + " is now visible.");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user