Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
-Removed bug code that was unneeded anyway and caused crashes.
+Incremented version to 1.1.7.5
  • Loading branch information
CleverNucleus committed Mar 1, 2021
1 parent de7ba2c commit 884831f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 884831f

Please sign in to comment.