Removed Dev-Env test in DebugDataItem

This commit is contained in:
Frank 2023-06-08 00:38:01 +02:00
parent 5bf7e3b5c6
commit d8892f6945

View file

@ -1,6 +1,5 @@
package org.betterx.bclib.items;
import org.betterx.bclib.BCLib;
import org.betterx.bclib.client.models.ModelsHelper;
import org.betterx.bclib.commands.PlaceCommand;
import org.betterx.bclib.interfaces.ItemModelProvider;
@ -94,7 +93,7 @@ public class DebugDataItem extends Item implements ItemModelProvider {
@Override
public InteractionResult useOn(UseOnContext useOnContext) {
if (!useOnContext.getPlayer().canUseGameMasterBlocks() || !BCLib.isDevEnvironment()) {
if (!useOnContext.getPlayer().canUseGameMasterBlocks()) {
return InteractionResult.FAIL;
}
return interaction.use(useOnContext);