Skip to content

Commit

Permalink
Add more debug info (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
ploppyperson committed Aug 24, 2021
1 parent d62b419 commit 23ef715
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void onSpawn(StackEntity spawned) {
} catch (IllegalArgumentException e) {
sm.getLogger().warning("New health value is too high! Please report and include the message below.");
sm.getLogger().info(attribute.getBaseValue() + "," + attribute.getDefaultValue() + "," + attribute.getValue() + "," + leftOverDamage);
sm.getLogger().info("Type: " + getEntity().getType() + ", Name: " + getEntity().getCustomName() + ", Location: " + getEntity().getLocation());
if (spawnedAttribute != null) {
sm.getLogger().info(spawnedAttribute.getBaseValue() + "," + spawnedAttribute.getDefaultValue() + "," + spawnedAttribute.getValue());
}
Expand Down

0 comments on commit 23ef715

Please sign in to comment.