mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-25 10:57:57 +00:00 
			
		
		
		
	Update ErrorProne
This commit is contained in:
		| @@ -13,8 +13,6 @@ import net.minecraft.core.BlockPos; | ||||
| import net.minecraft.core.Direction; | ||||
| import net.minecraft.server.level.ServerLevel; | ||||
| import net.minecraft.world.level.block.entity.BlockEntity; | ||||
| import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | ||||
| 
 | ||||
| import javax.annotation.Nullable; | ||||
| import java.util.ArrayList; | ||||
| @@ -29,8 +27,6 @@ import java.util.Objects; | ||||
|  * @param <C> A platform-specific type, used for the invalidation callback. | ||||
|  */ | ||||
| public final class GenericPeripheralProvider<C extends Runnable> { | ||||
|     private static final Logger LOG = LoggerFactory.getLogger(GenericPeripheralProvider.class); | ||||
| 
 | ||||
|     private final List<ComponentLookup<? super C>> lookups = new ArrayList<>(); | ||||
| 
 | ||||
|     /** | ||||
|   | ||||
| @@ -33,7 +33,6 @@ public final class IDAssigner { | ||||
| 
 | ||||
|     private final Path idFile; | ||||
|     private final Path newIdFile; | ||||
|     private boolean atomicMove = true; | ||||
|     private @Nullable Map<String, Integer> ids; | ||||
| 
 | ||||
|     public IDAssigner(Path path) { | ||||
|   | ||||
| @@ -4,6 +4,7 @@ | ||||
| 
 | ||||
| package dan200.computercraft.shared.util; | ||||
| 
 | ||||
| import com.google.errorprone.annotations.Keep; | ||||
| import net.minecraft.core.BlockPos; | ||||
| import net.minecraft.resources.ResourceKey; | ||||
| import net.minecraft.server.level.ChunkLevel; | ||||
| @@ -132,6 +133,7 @@ public final class TickScheduler { | ||||
|         /** | ||||
|          * The current state of this token. | ||||
|          */ | ||||
|         @Keep | ||||
|         private volatile State $state = State.IDLE; | ||||
| 
 | ||||
|         public Token(BlockEntity owner) { | ||||
|   | ||||
| @@ -42,6 +42,7 @@ class GameTestSequenceMixin { | ||||
|     } | ||||
| 
 | ||||
|     @Shadow | ||||
|     @SuppressWarnings("unused") | ||||
|     private void tick(long tick) { | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -38,7 +38,7 @@ class MinecraftMixin implements MinecraftExtensions { | ||||
|     private final AtomicBoolean isStable = new AtomicBoolean(false); | ||||
| 
 | ||||
|     @Inject(method = "runTick", at = @At("TAIL")) | ||||
|     @SuppressWarnings("UnusedMethod") | ||||
|     @SuppressWarnings("unused") | ||||
|     private void updateStable(boolean render, CallbackInfo ci) { | ||||
|         isStable.set( | ||||
|             level != null && player != null && | ||||
|   | ||||
| @@ -22,7 +22,7 @@ public class WorldOpenFlowsMixin { | ||||
|      * @reason Makes it easier to run tests. We can switch to an @Inject if this becomes a problem. | ||||
|      */ | ||||
|     @Overwrite | ||||
|     @SuppressWarnings("UnusedMethod") | ||||
|     @SuppressWarnings("unused") | ||||
|     private void askForBackup(Screen screen, String level, boolean customised, Runnable action) { | ||||
|         action.run(); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates