Removed Dev-Env test in DebugDataItem
This commit is contained in:
parent
5bf7e3b5c6
commit
d8892f6945
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
package org.betterx.bclib.items;
|
package org.betterx.bclib.items;
|
||||||
|
|
||||||
import org.betterx.bclib.BCLib;
|
|
||||||
import org.betterx.bclib.client.models.ModelsHelper;
|
import org.betterx.bclib.client.models.ModelsHelper;
|
||||||
import org.betterx.bclib.commands.PlaceCommand;
|
import org.betterx.bclib.commands.PlaceCommand;
|
||||||
import org.betterx.bclib.interfaces.ItemModelProvider;
|
import org.betterx.bclib.interfaces.ItemModelProvider;
|
||||||
|
@ -94,7 +93,7 @@ public class DebugDataItem extends Item implements ItemModelProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InteractionResult useOn(UseOnContext useOnContext) {
|
public InteractionResult useOn(UseOnContext useOnContext) {
|
||||||
if (!useOnContext.getPlayer().canUseGameMasterBlocks() || !BCLib.isDevEnvironment()) {
|
if (!useOnContext.getPlayer().canUseGameMasterBlocks()) {
|
||||||
return InteractionResult.FAIL;
|
return InteractionResult.FAIL;
|
||||||
}
|
}
|
||||||
return interaction.use(useOnContext);
|
return interaction.use(useOnContext);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue