Skip to content

Commit b9ec6f2

Browse files
committed
Update to 1.14pr2
1 parent b1fff97 commit b9ec6f2

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ configurations {
5353
dependencies {
5454
minecraft "com.mojang:minecraft:${mc_version}"
5555
mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}"
56-
modCompile "net.fabricmc:fabric-loader:0.4.0+build.119"
56+
modCompile "net.fabricmc:fabric-loader:0.4.0+build.121"
5757
modCompile "net.fabricmc:fabric:0.2.7+build.122"
5858

5959
// compileOnly "mezz.jei:jei-1.13.2:5.0.0.8:api"

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
mod_version=1.82.1
33

44
# Minecraft properties
5-
mc_version=1.14 Pre-Release 1
6-
mappings_version=3
5+
mc_version=1.14 Pre-Release 2
6+
mappings_version=1

src/main/java/dan200/computercraft/client/render/TileEntityTurtleRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ private void renderTurtleAt( TileTurtle turtle, double posX, double posY, double
8686
String label = turtle.createProxy().getLabel();
8787
if( label != null && renderManager.hitResult != null && renderManager.hitResult instanceof BlockHitResult && turtle.getPos().equals( ((BlockHitResult) renderManager.hitResult).getBlockPos() ) )
8888
{
89-
method_3570( true );
89+
disableLightmap( true );
9090
GameRenderer.renderFloatingText(
9191
getFontRenderer(), label,
9292
(float) posX + 0.5F, (float) posY + 1.2F, (float) posZ + 0.5F, 0,
9393
renderManager.cameraEntity.getYaw(), renderManager.cameraEntity.getPitch(), false
9494
);
95-
method_3570( false );
95+
disableLightmap( false );
9696
}
9797

9898
GlStateManager.pushMatrix();

src/main/java/dan200/computercraft/shared/command/CommandComputerCraft.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import static dan200.computercraft.shared.command.builder.CommandBuilder.command;
4545
import static dan200.computercraft.shared.command.builder.HelpingArgumentBuilder.choice;
4646
import static dan200.computercraft.shared.command.text.ChatHelpers.*;
47-
import static net.minecraft.server.command.ServerCommandManager.literal;
47+
import static net.minecraft.server.command.CommandManager.literal;
4848

4949
public final class CommandComputerCraft
5050
{
@@ -178,7 +178,7 @@ else if( b.getWorld() == world )
178178
}
179179
else
180180
{
181-
player.method_14251( (ServerWorld) world, pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0 );
181+
player.teleport( (ServerWorld) world, pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0 );
182182
}
183183

184184
return 1;

src/main/java/dan200/computercraft/shared/command/CommandCopy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import net.minecraft.text.event.ClickEvent;
1717
import net.minecraft.text.event.HoverEvent;
1818

19-
import static net.minecraft.server.command.ServerCommandManager.argument;
20-
import static net.minecraft.server.command.ServerCommandManager.literal;
19+
import static net.minecraft.server.command.CommandManager.argument;
20+
import static net.minecraft.server.command.CommandManager.literal;
2121

2222
public final class CommandCopy
2323
{

src/main/java/dan200/computercraft/shared/computer/apis/CommandAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import net.minecraft.block.entity.BlockEntity;
2121
import net.minecraft.nbt.CompoundTag;
2222
import net.minecraft.server.MinecraftServer;
23-
import net.minecraft.server.command.ServerCommandManager;
23+
import net.minecraft.server.command.CommandManager;
2424
import net.minecraft.server.command.ServerCommandSource;
2525
import net.minecraft.state.property.Property;
2626
import net.minecraft.util.math.BlockPos;
@@ -81,7 +81,7 @@ private Object[] doCommand( String command )
8181
return new Object[] { false, createOutput( "Command blocks disabled by server" ) };
8282
}
8383

84-
ServerCommandManager commandManager = server.getCommandManager();
84+
CommandManager commandManager = server.getCommandManager();
8585
TileCommandComputer.CommandReceiver receiver = m_computer.getReceiver();
8686
try
8787
{

src/main/java/dan200/computercraft/shared/mixin/MixinItemFrameEntityRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
@Mixin( ItemFrameEntityRenderer.class )
2020
public class MixinItemFrameEntityRenderer
2121
{
22-
@Inject( method = "hasLabel", at = @At( "HEAD" ), cancellable = true ) // TODO: This name is entirely wrong
23-
private void method_3992_Injected( ItemFrameEntity entity, CallbackInfo info )
22+
@Inject( method = "renderItem", at = @At( "HEAD" ), cancellable = true )
23+
private void renderItem_Injected( ItemFrameEntity entity, CallbackInfo info )
2424
{
2525
ItemStack stack = entity.getHeldItemStack();
2626
if( stack.getItem() instanceof ItemPrintout )

src/main/java/dan200/computercraft/shared/peripheral/modem/wired/BlockCable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public boolean canPlaceAt( BlockState state, ViewableWorld world, BlockPos pos )
207207

208208
BlockPos offsetPos = pos.offset( facing );
209209
BlockState offsetState = world.getBlockState( offsetPos );
210-
return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() ) && !method_9581( offsetState.getBlock() );
210+
return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() );
211211
}
212212

213213
@Nullable

src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/BlockWirelessModem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public boolean canPlaceAt( BlockState state, ViewableWorld world, BlockPos pos )
8383
Direction facing = state.get( FACING );
8484
BlockPos offsetPos = pos.offset( facing );
8585
BlockState offsetState = world.getBlockState( offsetPos );
86-
return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() ) && !method_9581( offsetState.getBlock() );
86+
return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() );
8787
}
8888

8989
@Nullable

src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private static boolean canDeployOnBlock( @Nonnull ItemPlacementContext context,
299299
BlockState state = world.getBlockState( position );
300300
Block block = state.getBlock();
301301

302-
boolean replaceable = state.method_11587( context );
302+
boolean replaceable = state.canReplace( context );
303303
if( !allowReplaceable && replaceable ) return false;
304304

305305
if( ComputerCraft.turtlesObeyBlockProtection )

src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private TurtleCommandResult attack( final ITurtleAccess turtle, Direction direct
146146

147147
// Attack the entity
148148
boolean attacked = false;
149-
if( !hitEntity.method_5698( turtlePlayer ) ) // hitByEntity
149+
if( !hitEntity.handlePlayerAttack( turtlePlayer ) )
150150
{
151151
float damage = (float) turtlePlayer.getAttributeInstance( EntityAttributes.ATTACK_DAMAGE ).getValue();
152152
damage *= getDamageMultiplier();

0 commit comments

Comments
 (0)