Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotori316 committed Jan 20, 2024
1 parent 65e8ca6 commit 3c45a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ tasks.withType(AbstractPublishToMaven).configureEach {

tasks.register("registerVersion", CallVersionFunctionTask.class) {
functionEndpoint = readVersionFunctionEndpoint(project)
gameVersion = project.findProperty("minecraftVersion")
gameVersion = project.findProperty("minecraftVersion") as String
platform = "forge"
platformVersion = project.findProperty("forgeVersion") as String
modName = "quarryplus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.yogpc.qp.packet.IMessage;
import com.yogpc.qp.packet.PacketHandler;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;
Expand Down Expand Up @@ -34,14 +34,14 @@ public final class CreativeGeneratorSyncMessage implements IMessage {
public CreativeGeneratorSyncMessage(FriendlyByteBuf buf) {
this(
buf.readBlockPos(),
ResourceKey.create(Registry.DIMENSION_REGISTRY, buf.readResourceLocation()),
buf.readResourceKey(Registries.DIMENSION),
buf.readLong()
);
}

@Override
public void write(FriendlyByteBuf buf) {
buf.writeBlockPos(pos).writeResourceLocation(dim.location());
buf.writeBlockPos(pos).writeResourceKey(dim);
buf.writeLong(sendEnergy);
}

Expand Down

0 comments on commit 3c45a86

Please sign in to comment.