mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 21:23:00 +00:00 
			
		
		
		
	Bump to 1.14pr1
This commit is contained in:
		| @@ -7,7 +7,7 @@ buildscript { | |||||||
| } | } | ||||||
|  |  | ||||||
| plugins { | plugins { | ||||||
|     id 'fabric-loom' version '0.2.0-SNAPSHOT' |     id 'fabric-loom' version '0.2.1-SNAPSHOT' | ||||||
|     id 'com.matthewprenger.cursegradle' version '1.2.0' |     id 'com.matthewprenger.cursegradle' version '1.2.0' | ||||||
|     id "com.github.breadmoirai.github-release" version "2.2.4" |     id "com.github.breadmoirai.github-release" version "2.2.4" | ||||||
| } | } | ||||||
| @@ -52,9 +52,9 @@ configurations { | |||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     minecraft "com.mojang:minecraft:${mc_version}" |     minecraft "com.mojang:minecraft:${mc_version}" | ||||||
|     mappings "net.fabricmc:yarn:${mc_version}.${mappings_version}" |     mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}" | ||||||
|     modCompile "net.fabricmc:fabric-loader:0.3.7.109" |     modCompile "net.fabricmc:fabric-loader:0.4.0+build.119" | ||||||
|     modCompile "net.fabricmc:fabric:0.2.6.117" |     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" | ||||||
|     // deobfProvided "pl.asie:Charset-Lib:0.5.4.6" |     // deobfProvided "pl.asie:Charset-Lib:0.5.4.6" | ||||||
|   | |||||||
| @@ -2,5 +2,5 @@ | |||||||
| mod_version=1.82.1 | mod_version=1.82.1 | ||||||
|  |  | ||||||
| # Minecraft properties | # Minecraft properties | ||||||
| mc_version=19w14a | mc_version=1.14 Pre-Release 1 | ||||||
| mappings_version=3 | mappings_version=3 | ||||||
|   | |||||||
| @@ -39,6 +39,8 @@ public class WidgetTerminal implements Element | |||||||
|     private final int termWidth; |     private final int termWidth; | ||||||
|     private final int termHeight; |     private final int termHeight; | ||||||
|  |  | ||||||
|  |     private boolean focused; | ||||||
|  |  | ||||||
|     private float terminateTimer = -1; |     private float terminateTimer = -1; | ||||||
|     private float rebootTimer = -1; |     private float rebootTimer = -1; | ||||||
|     private float shutdownTimer = -1; |     private float shutdownTimer = -1; | ||||||
| @@ -293,9 +295,9 @@ public class WidgetTerminal implements Element | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|     public void onFocusChanged( boolean noClue, boolean focused ) |     public boolean changeFocus( boolean reverse ) | ||||||
|     { |     { | ||||||
|         if( !focused ) |         if( focused ) | ||||||
|         { |         { | ||||||
|             // When blurring, we should make all keys go up |             // When blurring, we should make all keys go up | ||||||
|             for( int key = 0; key < keysDown.size(); key++ ) |             for( int key = 0; key < keysDown.size(); key++ ) | ||||||
| @@ -314,6 +316,9 @@ public class WidgetTerminal implements Element | |||||||
|  |  | ||||||
|             shutdownTimer = terminateTimer = rebootTimer = -1; |             shutdownTimer = terminateTimer = rebootTimer = -1; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         focused = !focused; | ||||||
|  |         return true; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public void draw( int originX, int originY ) |     public void draw( int originX, int originY ) | ||||||
|   | |||||||
| @@ -33,9 +33,9 @@ public class WidgetWrapper implements Element | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|     public void onFocusChanged( boolean a, boolean b ) |     public boolean changeFocus( boolean reverse ) | ||||||
|     { |     { | ||||||
|         listener.onFocusChanged( a, b ); |         return listener.changeFocus( reverse ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|   | |||||||
| @@ -19,7 +19,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | |||||||
| @Mixin( ItemFrameEntityRenderer.class ) | @Mixin( ItemFrameEntityRenderer.class ) | ||||||
| public class MixinItemFrameEntityRenderer | public class MixinItemFrameEntityRenderer | ||||||
| { | { | ||||||
|     @Inject( method = "method_3992", at = @At( "HEAD" ), cancellable = true ) |     @Inject( method = "hasLabel", at = @At( "HEAD" ), cancellable = true ) // TODO: This name is entirely wrong | ||||||
|     private void method_3992_Injected( ItemFrameEntity entity, CallbackInfo info ) |     private void method_3992_Injected( ItemFrameEntity entity, CallbackInfo info ) | ||||||
|     { |     { | ||||||
|         ItemStack stack = entity.getHeldItemStack(); |         ItemStack stack = entity.getHeldItemStack(); | ||||||
|   | |||||||
| @@ -43,7 +43,7 @@ public abstract class ItemBlockCable extends BlockItem | |||||||
|  |  | ||||||
|         world.setBlockState( pos, state, 3 ); |         world.setBlockState( pos, state, 3 ); | ||||||
|         BlockSoundGroup soundType = state.getBlock().getSoundGroup( state ); |         BlockSoundGroup soundType = state.getBlock().getSoundGroup( state ); | ||||||
|         world.playSound( null, pos, soundType.getPlaceSound(), SoundCategory.BLOCK, (soundType.getVolume() + 1.0F) / 2.0F, soundType.getPitch() * 0.8F ); |         world.playSound( null, pos, soundType.getPlaceSound(), SoundCategory.BLOCKS, (soundType.getVolume() + 1.0F) / 2.0F, soundType.getPitch() * 0.8F ); | ||||||
|  |  | ||||||
|         BlockEntity tile = world.getBlockEntity( pos ); |         BlockEntity tile = world.getBlockEntity( pos ); | ||||||
|         if( tile instanceof TileCable ) |         if( tile instanceof TileCable ) | ||||||
|   | |||||||
| @@ -146,7 +146,7 @@ public abstract class SpeakerPeripheral implements IPeripheral | |||||||
|             float adjVolume = Math.min( volume, 3.0f ); |             float adjVolume = Math.min( volume, 3.0f ); | ||||||
|             server.getPlayerManager().sendToAround( |             server.getPlayerManager().sendToAround( | ||||||
|                 null, pos.x, pos.y, pos.z, adjVolume > 1.0f ? 16 * adjVolume : 16.0, world.getDimension().getType(), |                 null, pos.x, pos.y, pos.z, adjVolume > 1.0f ? 16 * adjVolume : 16.0, world.getDimension().getType(), | ||||||
|                 new PlaySoundIdS2CPacket( name, SoundCategory.RECORD, pos, adjVolume, pitch ) |                 new PlaySoundIdS2CPacket( name, SoundCategory.RECORDS, pos, adjVolume, pitch ) | ||||||
|             ); |             ); | ||||||
|             return null; |             return null; | ||||||
|         } ); |         } ); | ||||||
|   | |||||||
| @@ -17,6 +17,7 @@ import net.minecraft.command.arguments.EntityAnchorArgumentType; | |||||||
| import net.minecraft.container.Container; | import net.minecraft.container.Container; | ||||||
| import net.minecraft.entity.Entity; | import net.minecraft.entity.Entity; | ||||||
| import net.minecraft.entity.passive.HorseBaseEntity; | import net.minecraft.entity.passive.HorseBaseEntity; | ||||||
|  | import net.minecraft.entity.player.PlayerEntity; | ||||||
| import net.minecraft.inventory.Inventory; | import net.minecraft.inventory.Inventory; | ||||||
| import net.minecraft.item.ItemStack; | import net.minecraft.item.ItemStack; | ||||||
| import net.minecraft.server.world.ServerWorld; | import net.minecraft.server.world.ServerWorld; | ||||||
| @@ -139,12 +140,11 @@ public final class TurtlePlayer extends FakePlayer | |||||||
|         return null; |         return null; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|     @Nonnull |     @Nonnull | ||||||
|     @Override |     @Override | ||||||
|     public Either<SleepResult, Void> trySleep( @Nonnull BlockPos bedLocation ) |     public Either<PlayerEntity.SleepFailureReason, Void> trySleep( @Nonnull BlockPos bedLocation ) | ||||||
|     { |     { | ||||||
|         return Either.left( SleepResult.INVALID_ATTEMPT ); |         return Either.left( PlayerEntity.SleepFailureReason.INVALID_ATTEMPT ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|   | |||||||
| @@ -29,7 +29,7 @@ import java.util.List; | |||||||
| public final class WorldUtil | public final class WorldUtil | ||||||
| { | { | ||||||
|     @SuppressWarnings( "Guava" ) |     @SuppressWarnings( "Guava" ) | ||||||
|     private static final Predicate<Entity> CAN_COLLIDE = x -> x != null && x.isAlive() && x.doesCollide(); |     private static final Predicate<Entity> CAN_COLLIDE = x -> x != null && x.isAlive() && x.collides(); | ||||||
|  |  | ||||||
|     public static boolean isLiquidBlock( World world, BlockPos pos ) |     public static boolean isLiquidBlock( World world, BlockPos pos ) | ||||||
|     { |     { | ||||||
| @@ -73,7 +73,7 @@ public final class WorldUtil | |||||||
|  |  | ||||||
|         Entity closest = null; |         Entity closest = null; | ||||||
|         double closestDist = 99.0; |         double closestDist = 99.0; | ||||||
|         List<Entity> list = world.getEntitiesInBox( Entity.class, bigBox, CAN_COLLIDE ); |         List<Entity> list = world.getEntities( Entity.class, bigBox, CAN_COLLIDE ); | ||||||
|         for( Entity entity : list ) |         for( Entity entity : list ) | ||||||
|         { |         { | ||||||
|             BoundingBox littleBox = entity.getBoundingBox(); |             BoundingBox littleBox = entity.getBoundingBox(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev