1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-24 07:56:54 +00:00

Update to 1.14pr2

This commit is contained in:
SquidDev 2019-04-12 19:35:34 +01:00
parent b1fff97bff
commit b9ec6f236d
11 changed files with 17 additions and 17 deletions

View File

@ -53,7 +53,7 @@ configurations {
dependencies { dependencies {
minecraft "com.mojang:minecraft:${mc_version}" minecraft "com.mojang:minecraft:${mc_version}"
mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}" mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}"
modCompile "net.fabricmc:fabric-loader:0.4.0+build.119" modCompile "net.fabricmc:fabric-loader:0.4.0+build.121"
modCompile "net.fabricmc:fabric:0.2.7+build.122" modCompile "net.fabricmc:fabric:0.2.7+build.122"
// compileOnly "mezz.jei:jei-1.13.2:5.0.0.8:api" // compileOnly "mezz.jei:jei-1.13.2:5.0.0.8:api"

View File

@ -2,5 +2,5 @@
mod_version=1.82.1 mod_version=1.82.1
# Minecraft properties # Minecraft properties
mc_version=1.14 Pre-Release 1 mc_version=1.14 Pre-Release 2
mappings_version=3 mappings_version=1

View File

@ -86,13 +86,13 @@ public class TileEntityTurtleRenderer extends BlockEntityRenderer<TileTurtle>
String label = turtle.createProxy().getLabel(); String label = turtle.createProxy().getLabel();
if( label != null && renderManager.hitResult != null && renderManager.hitResult instanceof BlockHitResult && turtle.getPos().equals( ((BlockHitResult) renderManager.hitResult).getBlockPos() ) ) if( label != null && renderManager.hitResult != null && renderManager.hitResult instanceof BlockHitResult && turtle.getPos().equals( ((BlockHitResult) renderManager.hitResult).getBlockPos() ) )
{ {
method_3570( true ); disableLightmap( true );
GameRenderer.renderFloatingText( GameRenderer.renderFloatingText(
getFontRenderer(), label, getFontRenderer(), label,
(float) posX + 0.5F, (float) posY + 1.2F, (float) posZ + 0.5F, 0, (float) posX + 0.5F, (float) posY + 1.2F, (float) posZ + 0.5F, 0,
renderManager.cameraEntity.getYaw(), renderManager.cameraEntity.getPitch(), false renderManager.cameraEntity.getYaw(), renderManager.cameraEntity.getPitch(), false
); );
method_3570( false ); disableLightmap( false );
} }
GlStateManager.pushMatrix(); GlStateManager.pushMatrix();

View File

@ -44,7 +44,7 @@ import static dan200.computercraft.shared.command.builder.CommandBuilder.args;
import static dan200.computercraft.shared.command.builder.CommandBuilder.command; import static dan200.computercraft.shared.command.builder.CommandBuilder.command;
import static dan200.computercraft.shared.command.builder.HelpingArgumentBuilder.choice; import static dan200.computercraft.shared.command.builder.HelpingArgumentBuilder.choice;
import static dan200.computercraft.shared.command.text.ChatHelpers.*; import static dan200.computercraft.shared.command.text.ChatHelpers.*;
import static net.minecraft.server.command.ServerCommandManager.literal; import static net.minecraft.server.command.CommandManager.literal;
public final class CommandComputerCraft public final class CommandComputerCraft
{ {
@ -178,7 +178,7 @@ public final class CommandComputerCraft
} }
else else
{ {
player.method_14251( (ServerWorld) world, pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0 ); player.teleport( (ServerWorld) world, pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0 );
} }
return 1; return 1;

View File

@ -16,8 +16,8 @@ import net.minecraft.text.TranslatableTextComponent;
import net.minecraft.text.event.ClickEvent; import net.minecraft.text.event.ClickEvent;
import net.minecraft.text.event.HoverEvent; import net.minecraft.text.event.HoverEvent;
import static net.minecraft.server.command.ServerCommandManager.argument; import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.ServerCommandManager.literal; import static net.minecraft.server.command.CommandManager.literal;
public final class CommandCopy public final class CommandCopy
{ {

View File

@ -20,7 +20,7 @@ import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity; import net.minecraft.block.entity.BlockEntity;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;
import net.minecraft.server.MinecraftServer; import net.minecraft.server.MinecraftServer;
import net.minecraft.server.command.ServerCommandManager; import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource; import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.state.property.Property; import net.minecraft.state.property.Property;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
@ -81,7 +81,7 @@ public class CommandAPI implements ILuaAPI
return new Object[] { false, createOutput( "Command blocks disabled by server" ) }; return new Object[] { false, createOutput( "Command blocks disabled by server" ) };
} }
ServerCommandManager commandManager = server.getCommandManager(); CommandManager commandManager = server.getCommandManager();
TileCommandComputer.CommandReceiver receiver = m_computer.getReceiver(); TileCommandComputer.CommandReceiver receiver = m_computer.getReceiver();
try try
{ {

View File

@ -19,8 +19,8 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin( ItemFrameEntityRenderer.class ) @Mixin( ItemFrameEntityRenderer.class )
public class MixinItemFrameEntityRenderer public class MixinItemFrameEntityRenderer
{ {
@Inject( method = "hasLabel", at = @At( "HEAD" ), cancellable = true ) // TODO: This name is entirely wrong @Inject( method = "renderItem", at = @At( "HEAD" ), cancellable = true )
private void method_3992_Injected( ItemFrameEntity entity, CallbackInfo info ) private void renderItem_Injected( ItemFrameEntity entity, CallbackInfo info )
{ {
ItemStack stack = entity.getHeldItemStack(); ItemStack stack = entity.getHeldItemStack();
if( stack.getItem() instanceof ItemPrintout ) if( stack.getItem() instanceof ItemPrintout )

View File

@ -207,7 +207,7 @@ public class BlockCable extends BlockGeneric implements WaterloggableBlock
BlockPos offsetPos = pos.offset( facing ); BlockPos offsetPos = pos.offset( facing );
BlockState offsetState = world.getBlockState( offsetPos ); BlockState offsetState = world.getBlockState( offsetPos );
return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() ) && !method_9581( offsetState.getBlock() ); return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() );
} }
@Nullable @Nullable

View File

@ -83,7 +83,7 @@ public class BlockWirelessModem extends BlockGeneric implements WaterloggableBlo
Direction facing = state.get( FACING ); Direction facing = state.get( FACING );
BlockPos offsetPos = pos.offset( facing ); BlockPos offsetPos = pos.offset( facing );
BlockState offsetState = world.getBlockState( offsetPos ); BlockState offsetState = world.getBlockState( offsetPos );
return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() ) && !method_9581( offsetState.getBlock() ); return Block.isFaceFullSquare( offsetState.getCollisionShape( world, offsetPos ), facing.getOpposite() );
} }
@Nullable @Nullable

View File

@ -299,7 +299,7 @@ public class TurtlePlaceCommand implements ITurtleCommand
BlockState state = world.getBlockState( position ); BlockState state = world.getBlockState( position );
Block block = state.getBlock(); Block block = state.getBlock();
boolean replaceable = state.method_11587( context ); boolean replaceable = state.canReplace( context );
if( !allowReplaceable && replaceable ) return false; if( !allowReplaceable && replaceable ) return false;
if( ComputerCraft.turtlesObeyBlockProtection ) if( ComputerCraft.turtlesObeyBlockProtection )

View File

@ -146,7 +146,7 @@ public class TurtleTool extends AbstractTurtleUpgrade
// Attack the entity // Attack the entity
boolean attacked = false; boolean attacked = false;
if( !hitEntity.method_5698( turtlePlayer ) ) // hitByEntity if( !hitEntity.handlePlayerAttack( turtlePlayer ) )
{ {
float damage = (float) turtlePlayer.getAttributeInstance( EntityAttributes.ATTACK_DAMAGE ).getValue(); float damage = (float) turtlePlayer.getAttributeInstance( EntityAttributes.ATTACK_DAMAGE ).getValue();
damage *= getDamageMultiplier(); damage *= getDamageMultiplier();