From 03f852cbccad49aa4a976fa8e4cf1e1aa88fb160 Mon Sep 17 00:00:00 2001 From: Lumaa Date: Tue, 21 Mar 2023 17:15:35 +0100 Subject: [PATCH] 1.19.4 fix --- gradle.properties | 10 +++++----- src/main/java/com/lumaa/libu/items/LibuProjectile.java | 2 +- src/main/resources/fabric.mod.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index cd9aa28..b8853d3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,15 +3,15 @@ # Fabric Properties # check these on https://fabricmc.net/develop - minecraft_version=1.19.3 - yarn_mappings=1.19.3+build.5 - loader_version=0.14.12 + minecraft_version=1.19.4 + yarn_mappings=1.19.4+build.1 + loader_version=0.14.17 # Mod Properties - mod_version = 1.2.0 + mod_version = 1.2.0-1.19.4 maven_group = com.lumaa archives_base_name = libu # Dependencies - fabric_version=0.73.0+1.19.3 + fabric_version=0.76.0+1.19.4 diff --git a/src/main/java/com/lumaa/libu/items/LibuProjectile.java b/src/main/java/com/lumaa/libu/items/LibuProjectile.java index 887e2cc..c047c70 100644 --- a/src/main/java/com/lumaa/libu/items/LibuProjectile.java +++ b/src/main/java/com/lumaa/libu/items/LibuProjectile.java @@ -29,7 +29,7 @@ public static void setProjectileInfo(ProjectileInfo projectileInfo) { protected void onEntityHit(EntityHitResult entityHitResult) { super.onEntityHit(entityHitResult); Entity entity = entityHitResult.getEntity(); - entity.damage(DamageSource.thrownProjectile(this, this.getOwner()), projectileInfo.damage); + entity.damage(world.getDamageSources().thrown(this, this.getOwner()), projectileInfo.damage); } @Override diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 02cef04..6335ed6 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -35,8 +35,8 @@ "depends": { "fabricloader": ">=0.14.12", - "fabric-api": ">=0.70.0", - "minecraft": "=1.19.3", + "fabric-api": ">=0.76.0", + "minecraft": ">=1.19.4", "java": ">=17" }, "suggests": {