diff --git a/gradle.properties b/gradle.properties index 9dc92517..4eaa6238 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false -mod_version=1.1.7 +mod_version=1.1.7.5 mod_group=com.github.clevernucleus mod_name=playerex mod_author=CleverNucleus \ No newline at end of file diff --git a/src/main/java/com/github/clevernucleus/playerex/init/EventHandler.java b/src/main/java/com/github/clevernucleus/playerex/init/EventHandler.java index ed5efba9..52e26b23 100644 --- a/src/main/java/com/github/clevernucleus/playerex/init/EventHandler.java +++ b/src/main/java/com/github/clevernucleus/playerex/init/EventHandler.java @@ -385,22 +385,4 @@ public static void onProjectileImpact(final net.minecraftforge.event.entity.Proj }); } } - - /** - * Event fired on looting. - * @param par0 - */ - @SubscribeEvent(priority = EventPriority.HIGHEST) - public static void onLivingLoot(final net.minecraftforge.event.entity.living.LootingLevelEvent par0) { - if(par0.getDamageSource().getTrueSource() instanceof PlayerEntity) { - PlayerEntity var0 = (PlayerEntity)par0.getDamageSource().getTrueSource(); - - if(var0 == null) return; - if(var0.world.isRemote) return; - - ExAPI.playerAttributes(var0).ifPresent(var -> { - par0.setLootingLevel(par0.getLootingLevel() + (int)(var.get(var0, PlayerAttributes.LUCKINESS) / 5F)); - }); - } - } } diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index aa8cacfd..c6a75c0d 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -4,7 +4,7 @@ license="MIT License" [[mods]] modId="playerex" -version="1.1.7" +version="1.1.7.5" displayName="Player Ex" displayURL="https://github.com/CleverNucleus/PlayerEx" logoFile="logo.png"