diff options
author | Jakub <53441451+kuba6000@users.noreply.github.com> | 2023-06-15 17:53:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 17:53:16 +0200 |
commit | cb383c824c3f799e678fb98f29661d79b5a13836 (patch) | |
tree | c27ec3672eb0cb1726565bf28ae2655404496231 /src/main/java/kubatech/commands/CommandBees.java | |
parent | b2c2a6dfe91696d4ecada95e5e43806ddb144ece (diff) | |
download | GT5-Unofficial-cb383c824c3f799e678fb98f29661d79b5a13836.tar.gz GT5-Unofficial-cb383c824c3f799e678fb98f29661d79b5a13836.tar.bz2 GT5-Unofficial-cb383c824c3f799e678fb98f29661d79b5a13836.zip |
Use mixins accessors + some misc fixes (#77)
* Change reflections to mixins
* Wrap witchery checking
* Remove more repeating code
* hmm
* test generation
* test
* client sided
* Update CommandCustomDrops.java
* Update MobRecipeLoader.java
* Save to static variable
* Imports
* Log message
* Convert InfernalHelper to mixin accessors
* Update build.gradle
* One more
* Return class nodes to optimize
* Translations mixin
* Automatically add commands
* Fixes
* Fix https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/12021
* Update kubatech.java
* Update CommonProxy.java
* Unnecessary qualified reference
* Simplify ItemUtils
* Check if single player diffrently
* Remove accessor for infernal-mobs
Diffstat (limited to 'src/main/java/kubatech/commands/CommandBees.java')
-rw-r--r-- | src/main/java/kubatech/commands/CommandBees.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kubatech/commands/CommandBees.java b/src/main/java/kubatech/commands/CommandBees.java index 8d01080500..edf3b04ce6 100644 --- a/src/main/java/kubatech/commands/CommandBees.java +++ b/src/main/java/kubatech/commands/CommandBees.java @@ -28,7 +28,6 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.List; -import net.minecraft.client.Minecraft; import net.minecraft.command.CommandBase; import net.minecraft.command.ICommandSender; import net.minecraft.item.ItemStack; @@ -40,7 +39,9 @@ import com.google.common.io.Files; import forestry.api.apiculture.IAlleleBeeSpecies; import forestry.api.apiculture.IBee; import forestry.api.apiculture.IBeeGenome; +import kubatech.api.utils.ModUtils; +@CommandHandler.ChildCommand public class CommandBees extends CommandBase { @Override @@ -62,8 +63,7 @@ public class CommandBees extends CommandBase { @Override public void processCommand(ICommandSender p_71515_1_, String[] p_71515_2_) { - if (!Minecraft.getMinecraft() - .isSingleplayer()) { + if (!ModUtils.isClientSided) { p_71515_1_ .addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "This command is single-player only!")); return; |