diff --git a/gradle.properties b/gradle.properties index 5acb12d7c..b6ea6fe23 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,6 +2,6 @@ mod_version=1.83.1 # Minecraft properties -mc_version=1.14.2 -forge_version=26.0.55 -mappings_version=20190621-1.14.2 +mc_version=1.14.3 +forge_version=27.0.3 +mappings_version=20190626-1.14.3 diff --git a/src/main/java/dan200/computercraft/shared/computer/blocks/TileCommandComputer.java b/src/main/java/dan200/computercraft/shared/computer/blocks/TileCommandComputer.java index dcd476592..1a689ded3 100644 --- a/src/main/java/dan200/computercraft/shared/computer/blocks/TileCommandComputer.java +++ b/src/main/java/dan200/computercraft/shared/computer/blocks/TileCommandComputer.java @@ -22,6 +22,7 @@ import net.minecraft.util.math.Vec3d; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.StringTextComponent; import net.minecraft.util.text.TranslationTextComponent; +import net.minecraft.world.GameRules; import net.minecraft.world.ServerWorld; import javax.annotation.Nonnull; @@ -63,7 +64,7 @@ public class TileCommandComputer extends TileComputer @Override public boolean shouldReceiveFeedback() { - return getWorld().getGameRules().getBoolean( "sendCommandFeedback" ); + return getWorld().getGameRules().getBoolean( GameRules.SEND_COMMAND_FEEDBACK ); } @Override @@ -75,7 +76,7 @@ public class TileCommandComputer extends TileComputer @Override public boolean allowLogging() { - return getWorld().getGameRules().getBoolean( "commandBlockOutput" ); + return getWorld().getGameRules().getBoolean( GameRules.COMMAND_BLOCK_OUTPUT ); } } diff --git a/src/main/java/dan200/computercraft/shared/computer/blocks/TileComputerBase.java b/src/main/java/dan200/computercraft/shared/computer/blocks/TileComputerBase.java index e0a6da47d..cdadb3c3c 100644 --- a/src/main/java/dan200/computercraft/shared/computer/blocks/TileComputerBase.java +++ b/src/main/java/dan200/computercraft/shared/computer/blocks/TileComputerBase.java @@ -416,7 +416,7 @@ public abstract class TileComputerBase extends TileGeneric implements IComputerT { return hasCustomName() ? new StringTextComponent( label ) - : new TranslationTextComponent(getBlockState().getBlock().getTranslationKey()); + : new TranslationTextComponent( getBlockState().getBlock().getTranslationKey() ); } @Override diff --git a/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/TileDiskDrive.java b/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/TileDiskDrive.java index a2715d432..72d3c634f 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/TileDiskDrive.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/TileDiskDrive.java @@ -581,7 +581,7 @@ public final class TileDiskDrive extends TileGeneric implements DefaultInventory @Override public ITextComponent getName() { - return customName != null ? customName : new TranslationTextComponent(getBlockState().getBlock().getTranslationKey()); + return customName != null ? customName : new TranslationTextComponent( getBlockState().getBlock().getTranslationKey() ); } @Nonnull diff --git a/src/main/java/dan200/computercraft/shared/peripheral/printer/TilePrinter.java b/src/main/java/dan200/computercraft/shared/peripheral/printer/TilePrinter.java index 206040c81..98a22fb35 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/printer/TilePrinter.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/printer/TilePrinter.java @@ -574,7 +574,7 @@ public final class TilePrinter extends TileGeneric implements DefaultSidedInvent @Override public ITextComponent getName() { - return customName != null ? customName : new TranslationTextComponent(getBlockState().getBlock().getTranslationKey()); + return customName != null ? customName : new TranslationTextComponent( getBlockState().getBlock().getTranslationKey() ); } @Override diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index ff246ba74..0e40894ea 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -1,5 +1,5 @@ modLoader="javafml" -loaderVersion="[26,)" +loaderVersion="[27,28)" issueTrackerURL="https://github.com/SquidDev-CC/CC-Tweaked/issues" displayURL="https://github.com/SquidDev-CC/CC-Tweaked" @@ -19,6 +19,6 @@ CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles a [[dependencies.computercraft]] modId="forge" mandatory=true - versionRange="[26,)" + versionRange="[27,28)" ordering="NONE" side="BOTH"