mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Update to Minecraft 1.19.3
Lots of minor changes, but nothing too nasty - just tedious. Known bugs/issues: - REI and JEI haven't been updated at the time of writing, so our usage of their APIs may be incompatible. - Crash when opening the config UI in Fabric, as forgeconfigapi-port hasn't been updated yet. Will hold off on doing a release until those mods have updated.
This commit is contained in:
		| @@ -59,7 +59,7 @@ import java.util.function.Function; | ||||
| @AutoService({ PlatformHelper.class, dan200.computercraft.impl.PlatformHelper.class, ComputerCraftAPIService.class }) | ||||
| public class TestPlatformHelper extends AbstractComputerCraftAPI implements PlatformHelper { | ||||
|     @Override | ||||
|     public <T> Registries.RegistryWrapper<T> wrap(ResourceKey<Registry<T>> registry) { | ||||
|     public <T> RegistryWrappers.RegistryWrapper<T> wrap(ResourceKey<Registry<T>> registry) { | ||||
|         throw new UnsupportedOperationException("Cannot query registry inside tests"); | ||||
|     } | ||||
| 
 | ||||
| @@ -113,11 +113,6 @@ public class TestPlatformHelper extends AbstractComputerCraftAPI implements Plat | ||||
|         throw new UnsupportedOperationException("Cannot send NetworkMessages inside tests"); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public CreativeModeTab getCreativeTab() { | ||||
|         throw new UnsupportedOperationException("Cannot get creative tab inside tests"); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public List<TagKey<Item>> getDyeTags() { | ||||
|         throw new UnsupportedOperationException("Cannot query tags inside tests"); | ||||
| @@ -153,9 +148,11 @@ public class TestPlatformHelper extends AbstractComputerCraftAPI implements Plat | ||||
|         throw new UnsupportedOperationException("Cannot interact with the world inside tests"); | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     @Nullable | ||||
|     @Override | ||||
|     public Collection<CreativeModeTab> getCreativeTabs(ItemStack stack) { | ||||
|         throw new UnsupportedOperationException("Cannot get creative tabs inside tests"); | ||||
|     public ResourceLocation getCreativeTabId(CreativeModeTab tab) { | ||||
|         return null; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|   | ||||
| @@ -7,15 +7,15 @@ package dan200.computercraft.shared.computer.core; | ||||
| 
 | ||||
| import dan200.computercraft.api.filesystem.Mount; | ||||
| import net.minecraft.Util; | ||||
| import net.minecraft.server.packs.FolderPackResources; | ||||
| import net.minecraft.server.packs.PackType; | ||||
| import net.minecraft.server.packs.PathPackResources; | ||||
| import net.minecraft.server.packs.resources.ReloadableResourceManager; | ||||
| import net.minecraft.util.Unit; | ||||
| import org.junit.jupiter.api.BeforeEach; | ||||
| import org.junit.jupiter.api.Test; | ||||
| 
 | ||||
| import java.io.File; | ||||
| import java.io.IOException; | ||||
| import java.nio.file.Path; | ||||
| import java.util.ArrayList; | ||||
| import java.util.Arrays; | ||||
| import java.util.Comparator; | ||||
| @@ -32,7 +32,7 @@ public class ResourceMountTest { | ||||
|         var manager = new ReloadableResourceManager(PackType.SERVER_DATA); | ||||
|         var done = new CompletableFuture<Unit>(); | ||||
|         manager.createReload(Util.backgroundExecutor(), Util.backgroundExecutor(), done, List.of( | ||||
|             new FolderPackResources(new File("../core/src/main/resources")) | ||||
|             new PathPackResources("resources", Path.of("../core/src/main/resources"), false) | ||||
|         )); | ||||
| 
 | ||||
|         mount = ResourceMount.get("computercraft", "lua/rom", manager); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates