Skip to content

Commit 889ab53

Browse files
committed
refactor: move blockDirections to Constants.AROUND_BLOCK_OFFSETS
1 parent 4defbed commit 889ab53

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package br.minilambda;
2+
3+
public class Constants {
4+
public static final int[][] AROUND_BLOCK_OFFSETS = {
5+
{0, -1, 0}, // Bottom.
6+
{-1, 0, 0}, // X negative.
7+
{+1, 0, 0}, // X positive.
8+
{0, 0, -1}, // Z negative.
9+
{0, 0, +1} // Z positive.
10+
};
11+
}

src/main/java/br/minilambda/event/DirtToMudUsingWater.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
import org.bukkit.event.player.PlayerBucketEmptyEvent;
1313

1414
public class DirtToMudUsingWater implements Listener {
15-
private Integer[][] blockDirections = {
16-
{0, -1, 0}, // Bottom.
17-
{-1, 0, 0}, // X negative.
18-
{+1, 0, 0}, // X positive.
19-
{0, 0, -1}, // Z negative.
20-
{0, 0, +1} // Z positive.
21-
};
22-
2315
@EventHandler
2416
public void onPlayerBucketEmptyEvent(PlayerBucketEmptyEvent event){
2517
/*

0 commit comments

Comments
 (0)