diff --git a/build.gradle b/build.gradle index a0f994b..34ef30b 100644 --- a/build.gradle +++ b/build.gradle @@ -8,6 +8,9 @@ repositories { maven { url 'https://masa.dy.fi/maven' } + maven { + url 'https://maven.nucleoid.xyz' + } } sourceCompatibility = JavaVersion.VERSION_17 @@ -29,6 +32,8 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "carpet:fabric-carpet:${project.minecraft_version}-${project.carpet_core_version}" + modImplementation include("eu.pb4:polymer-reg-sync-manipulator:0.5.7+1.20.1") + // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. // You may need to force-disable transitiveness on them. } diff --git a/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java b/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java index d097b3f..b9a8c09 100644 --- a/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java +++ b/src/main/java/carpet_autocraftingtable/CraftingTableBlockEntity.java @@ -1,6 +1,7 @@ package carpet_autocraftingtable; import carpet_autocraftingtable.mixins.CraftingInventoryMixin; +import eu.pb4.polymer.rsm.api.RegistrySyncUtils; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; import net.minecraft.block.entity.BlockEntityType; @@ -55,7 +56,10 @@ public class CraftingTableBlockEntity extends LockableContainerBlockEntity imple private final CraftingInventory craftingInventory = new CraftingInventory(null, 3, 3); - public static void init() { } // registers BE type + public static void init() { // registers BE type + // Mark as server-only registry entry + RegistrySyncUtils.setServerEntry(Registries.BLOCK_ENTITY_TYPE, TYPE); + } @Override public void writeNbt(NbtCompound tag) {