From 0aa68e005b644760fab08631fe693aca444574b6 Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Wed, 15 Nov 2023 20:35:17 -0500 Subject: [PATCH] Update minigame to Minecraft 1.20.1 --- build.gradle | 2 +- gradle.properties | 10 +++++----- .../volleyball/entity/VolleyballSlimeEntity.java | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 2648039..bdc2668 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id "fabric-loom" version "1.2.7" + id "fabric-loom" version "1.4.4" id "maven-publish" } diff --git a/gradle.properties b/gradle.properties index c48486c..ca1a8d3 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.2 -loader_version = 0.14.19 -fabric_version = 0.80.0+1.19.4 +minecraft_version = 1.20.1 +yarn_mappings = 1.20.1+build.10 +loader_version = 0.14.24 +fabric_version = 0.90.7+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/volleyball/entity/VolleyballSlimeEntity.java b/src/main/java/io/github/haykam821/volleyball/entity/VolleyballSlimeEntity.java index 29fe58b..758ec1a 100644 --- a/src/main/java/io/github/haykam821/volleyball/entity/VolleyballSlimeEntity.java +++ b/src/main/java/io/github/haykam821/volleyball/entity/VolleyballSlimeEntity.java @@ -48,15 +48,15 @@ private void shootSkullAt(Entity target) { Vec3d skullPos = this.getSkullPos(); Vec3d direction = target.getPos().subtract(skullPos); - WitherSkullEntity skull = new WitherSkullEntity(this.world, this, direction.getX(), direction.getY(), direction.getZ()); + WitherSkullEntity skull = new WitherSkullEntity(this.getWorld(), this, direction.getX(), direction.getY(), direction.getZ()); skull.setPos(skullPos.getX(), skullPos.getY(), skullPos.getZ()); - if (this.world.getRandom().nextInt(1000) == 0) { + if (this.getWorld().getRandom().nextInt(1000) == 0) { skull.setCharged(true); } - this.world.spawnEntity(skull); - this.world.syncWorldEvent(null, WorldEvents.WITHER_SHOOTS, BlockPos.ofFloored(skullPos), 0); + this.getWorld().spawnEntity(skull); + this.getWorld().syncWorldEvent(null, WorldEvents.WITHER_SHOOTS, BlockPos.ofFloored(skullPos), 0); } protected Vec3d getSkullPos() {