From 35d023bc2f4c9d0d17ed62474d4b8c6cb203c00b Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Sat, 29 Jul 2023 16:00:04 -0400 Subject: [PATCH] Update minigame to Minecraft 1.20.1 --- build.gradle | 2 +- gradle.properties | 10 +++++----- .../github/haykam821/microbattle/game/kit/BeeKit.java | 2 +- .../haykam821/microbattle/game/kit/SnowGolemKit.java | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 2648039..5c69f7e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id "fabric-loom" version "1.2.7" + id "fabric-loom" version "1.3.8" id "maven-publish" } diff --git a/gradle.properties b/gradle.properties index 08b71d2..9adb90f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,9 +5,9 @@ mod_version = 1.0.0 org.gradle.jvmargs = -Xmx1G # Versions -minecraft_version = 1.19.4 -yarn_mappings = 1.19.4+build.1 -loader_version = 0.14.17 -fabric_version = 0.76.0+1.19.4 +minecraft_version = 1.20.1 +yarn_mappings = 1.20.1+build.10 +loader_version = 0.14.21 +fabric_version = 0.86.1+1.20.1 -plasmid_version = 0.5+1.19.4-SNAPSHOT \ No newline at end of file +plasmid_version = 0.5.100+1.20.1 \ No newline at end of file diff --git a/src/main/java/io/github/haykam821/microbattle/game/kit/BeeKit.java b/src/main/java/io/github/haykam821/microbattle/game/kit/BeeKit.java index cfefbf3..4bbad42 100644 --- a/src/main/java/io/github/haykam821/microbattle/game/kit/BeeKit.java +++ b/src/main/java/io/github/haykam821/microbattle/game/kit/BeeKit.java @@ -52,7 +52,7 @@ private void placeFlower(ServerWorld world, BlockPos pos) { @Override public ActionResult onKilledPlayer(PlayerEntry entry, DamageSource source) { if (entry.getPlayer().isOnGround()) { - this.placeFlower(entry.getPlayer().getWorld(), entry.getPlayer().getBlockPos()); + this.placeFlower(entry.getPlayer().getServerWorld(), entry.getPlayer().getBlockPos()); } return ActionResult.PASS; } diff --git a/src/main/java/io/github/haykam821/microbattle/game/kit/SnowGolemKit.java b/src/main/java/io/github/haykam821/microbattle/game/kit/SnowGolemKit.java index c149f36..8d8c194 100644 --- a/src/main/java/io/github/haykam821/microbattle/game/kit/SnowGolemKit.java +++ b/src/main/java/io/github/haykam821/microbattle/game/kit/SnowGolemKit.java @@ -69,7 +69,7 @@ public void tick() { } private void tickTrail() { - ServerWorld world = this.player.getWorld(); + ServerWorld world = this.player.getServerWorld(); BlockPos.Mutable pos = new BlockPos.Mutable(0, Math.floor(this.player.getY()), 0); for (int corner = 0; corner < 4; corner++) {