Skip to content

Commit

Permalink
Fixes one last bug before v3.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bysokar committed Jun 24, 2017
1 parent c32f7f1 commit 1931cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/draksterau/Regenerator/listeners/eventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void onBlockBreak(BlockBreakEvent event) {
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = false)
public void onRegenerationRequest(RegenerationRequestEvent event) {
RChunk rChunk = new RChunk(RegeneratorPlugin, event.getBlock().getChunk().getX(), event.getBlock().getChunk().getZ(), event.getBlock().getWorld().getName());
if (!event.isCancelled()) {
if (!event.isCancelled() && !event.getTrigger().equals(RequestTrigger.Command)) {
if (event.isImmediate()) {
Bukkit.getServer().getScheduler().runTask(this.RegeneratorPlugin, new ChunkTask(rChunk, true));
} else {
Expand Down

0 comments on commit 1931cb5

Please sign in to comment.