From 1106bb1c350601325b8983396c5b5209593fbb8d Mon Sep 17 00:00:00 2001 From: Buuz135 Date: Sat, 20 Apr 2024 16:59:19 +0200 Subject: [PATCH] Fixed server side issues --- CHANGELOG.md | 3 +++ build.gradle | 4 ++-- .../replication/block/tile/ChipStorageBlockEntity.java | 3 +++ .../replication/block/tile/DisintegratorBlockEntity.java | 3 +++ .../block/tile/IdentificationChamberBlockEntity.java | 1 + .../buuz135/replication/block/tile/ReplicatorBlockEntity.java | 1 + 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e2bb5a..4d2794a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.0.1 +* Fixed server side issues + # 1.0.0 * Initial release \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7c96ccf..c78bfc7 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ plugins { group = 'com.buuz135' -version = '1.20.1-1.0.0' +version = '1.20.1-1.0.1' java { archivesBaseName = 'Replication' @@ -148,7 +148,7 @@ dependencies { runtimeOnly fg.deobf("curse.maven:industrial-foregoing-266515:4683880") implementation fg.deobf("curse.maven:jade-324717:5072729") - runtimeOnly fg.deobf("curse.maven:world-stripper-250603:4578579") + //runtimeOnly fg.deobf("curse.maven:world-stripper-250603:4578579") } // Example for how to get properties into the manifest for reading at runtime. diff --git a/src/main/java/com/buuz135/replication/block/tile/ChipStorageBlockEntity.java b/src/main/java/com/buuz135/replication/block/tile/ChipStorageBlockEntity.java index 73ac24c..023de1e 100644 --- a/src/main/java/com/buuz135/replication/block/tile/ChipStorageBlockEntity.java +++ b/src/main/java/com/buuz135/replication/block/tile/ChipStorageBlockEntity.java @@ -20,6 +20,8 @@ import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; +import net.minecraftforge.api.distmarker.Dist; +import net.minecraftforge.api.distmarker.OnlyIn; import org.apache.commons.lang3.tuple.Pair; import org.jetbrains.annotations.NotNull; @@ -49,6 +51,7 @@ public ChipStorageBlockEntity(BasicTileBlock base, Block addInventory(this.chips); } + @OnlyIn(Dist.CLIENT) @Override public void initClient() { super.initClient(); diff --git a/src/main/java/com/buuz135/replication/block/tile/DisintegratorBlockEntity.java b/src/main/java/com/buuz135/replication/block/tile/DisintegratorBlockEntity.java index b1823f7..4400231 100644 --- a/src/main/java/com/buuz135/replication/block/tile/DisintegratorBlockEntity.java +++ b/src/main/java/com/buuz135/replication/block/tile/DisintegratorBlockEntity.java @@ -26,6 +26,8 @@ import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; +import net.minecraftforge.api.distmarker.Dist; +import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.fluids.capability.IFluidHandler; import org.apache.commons.lang3.tuple.Pair; import org.jetbrains.annotations.NotNull; @@ -103,6 +105,7 @@ public DisintegratorBlockEntity(BasicTileBlock base, B this.addMatterTank(this.tank6); } + @OnlyIn(Dist.CLIENT) @Override public void initClient() { super.initClient(); diff --git a/src/main/java/com/buuz135/replication/block/tile/IdentificationChamberBlockEntity.java b/src/main/java/com/buuz135/replication/block/tile/IdentificationChamberBlockEntity.java index 348c2bc..bb93f68 100644 --- a/src/main/java/com/buuz135/replication/block/tile/IdentificationChamberBlockEntity.java +++ b/src/main/java/com/buuz135/replication/block/tile/IdentificationChamberBlockEntity.java @@ -104,6 +104,7 @@ public IdentificationChamberBlockEntity(BasicTileBlock) this.memoryChipOutput); } + @OnlyIn(Dist.CLIENT) @Override public void initClient() { super.initClient(); diff --git a/src/main/java/com/buuz135/replication/block/tile/ReplicatorBlockEntity.java b/src/main/java/com/buuz135/replication/block/tile/ReplicatorBlockEntity.java index 85b3d64..52c3b0b 100644 --- a/src/main/java/com/buuz135/replication/block/tile/ReplicatorBlockEntity.java +++ b/src/main/java/com/buuz135/replication/block/tile/ReplicatorBlockEntity.java @@ -120,6 +120,7 @@ public void drawBackgroundLayer(GuiGraphics guiGraphics, Screen screen, IAssetPr addFilter(infiniteCrafting); } + @OnlyIn(Dist.CLIENT) @Override public void initClient() { super.initClient();