@@ -99,7 +99,7 @@ public void onControlInteract(PlayerInteractEvent event) {
99
99
if (blockType .equals (Material .REPEATER )) {
100
100
Repeater repeater = (Repeater ) block .getBlockData ();
101
101
if (!repeater .isLocked ()) {
102
- locStr = blockLocation .getWorld ().getName () + ":" + blockLocation .blockX () + ":" + blockLocation .blockY () + ":" + blockLocation .blockZ ();
102
+ locStr = blockLocation .getWorld ().getName () + ":" + blockLocation .getBlockX () + ":" + blockLocation .getBlockY () + ":" + blockLocation .getBlockZ ();
103
103
}
104
104
}
105
105
HashMap <String , Object > where = new HashMap <>();
@@ -157,7 +157,8 @@ public void onControlInteract(PlayerInteractEvent event) {
157
157
if (action == Action .RIGHT_CLICK_BLOCK ) {
158
158
switch (type ) {
159
159
// random location button
160
- case 1 -> new RandomAction (plugin ).process (cooldown , player , id , tardis , rsc .getSecondary ());
160
+ case 1 ->
161
+ new RandomAction (plugin ).process (cooldown , player , id , tardis , rsc .getSecondary ());
161
162
// console repeaters
162
163
case 2 , 3 , 4 , 5 -> new RepeaterAction (plugin ).announce (player , block , type );
163
164
// fast return button
@@ -169,7 +170,8 @@ public void onControlInteract(PlayerInteractEvent event) {
169
170
// Temporal Locator sign
170
171
case 11 -> new TemporarlLocatorAction (plugin ).openGUI (player , tcc );
171
172
// Control room light switch
172
- case 12 -> new LightSwitchAction (plugin , id , lights , player , tardis .getSchematic ().getLights ()).flickSwitch ();
173
+ case 12 ->
174
+ new LightSwitchAction (plugin , id , lights , player , tardis .getSchematic ().getLights ()).flickSwitch ();
173
175
// TIS
174
176
case 13 -> new TARDISInfoMenuButton (plugin , player ).clickButton ();
175
177
// Disk Storage
@@ -194,7 +196,8 @@ public void onControlInteract(PlayerInteractEvent event) {
194
196
new CustardCreamAction (plugin , player , block , id ).dispense ();
195
197
}
196
198
// force field
197
- case 29 -> new ForceFieldAction (plugin ).toggleSheilds (player , blockLocation , tardis .getArtron_level ());
199
+ case 29 ->
200
+ new ForceFieldAction (plugin ).toggleSheilds (player , blockLocation , tardis .getArtron_level ());
198
201
// flight mode button
199
202
case 30 -> new FlightModeAction (plugin ).setMode (ownerUUID .toString (), player );
200
203
// chameleon sign
@@ -208,7 +211,8 @@ public void onControlInteract(PlayerInteractEvent event) {
208
211
}
209
212
}
210
213
// scanner
211
- case 33 -> new TARDISScanner (plugin ).scan (player , id , tardis .getRenderer (), tardis .getArtron_level ());
214
+ case 33 ->
215
+ new TARDISScanner (plugin ).scan (player , id , tardis .getRenderer (), tardis .getArtron_level ());
212
216
// cloister bell
213
217
case 35 -> new CloisterBellAction (plugin ).ring (id , tardis );
214
218
// weather menu
@@ -223,7 +227,8 @@ public void onControlInteract(PlayerInteractEvent event) {
223
227
// zero room entry
224
228
case 16 -> new ZeroRoomAction (plugin ).doEntry (player , tardis , id );
225
229
// maze exits
226
- case 40 , 41 , 42 , 43 -> new MazeAction (plugin ).reconfigure (type , player , id , blockLocation );
230
+ case 40 , 41 , 42 , 43 ->
231
+ new MazeAction (plugin ).reconfigure (type , player , id , blockLocation );
227
232
default -> {
228
233
}
229
234
}
0 commit comments