Skip to content

Commit 603606f

Browse files
authored
forgot to add config option :)
1 parent f97af07 commit 603606f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/survivaltweaks/mixin/debugStickMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private static void sendMessage(PlayerEntity player, Text message) { }
3737

3838
@Inject(method = "use", at = @At("HEAD"), cancellable = true)
3939
private void survivalDebug(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack, CallbackInfoReturnable<Boolean> cir) {
40-
if (player.isCreativeLevelTwoOp()) { return; }
40+
if (player.isCreativeLevelTwoOp() || config.SURVIVAL_DEBUG_STICK) { return; }
4141

4242
Block block = state.getBlock();
4343
StateManager<Block, BlockState> stateManager = block.getStateManager();

0 commit comments

Comments
 (0)