Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polymer-reg-sync-manipulator to fix compat for clients with Fabric API but not this mod installed #72

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ repositories {
maven {
url 'https://masa.dy.fi/maven'
}
maven {
url 'https://maven.nucleoid.xyz'
}
}

sourceCompatibility = JavaVersion.VERSION_17
Expand All @@ -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.
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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) {
Expand Down