Darkhax-Minecraft / WAWLA

What Are We Looking At (WAWLA) is a mod aimed and drawing more attention to providing in-game documentation for players.
GNU Lesser General Public License v2.1
32 stars 22 forks source link

Blast Resistance is always 5F #63

Closed trabpukcip closed 7 years ago

trabpukcip commented 7 years ago

It appears that the Blast Resistance plugin does not actually do anything.

In the code it is hard set to show 5F (5.0) as the value for ANY block.

https://github.com/Darkhax-Minecraft/WAWLA/blob/master/src/main/java/net/darkhax/wawla/plugins/generic/PluginBlastResistance.java#L18

Wawla Blast Resistance

trabpukcip commented 7 years ago

This works although bedrock is shown as scientific notation (1.8E7) which could be worked around.

info.add(I18n.format("tooltip.wawla.generic.blastresist") + ": " + (data.block.getExplosionResistance(data.world, data.pos, null, null) * 5F));