fix defaults on hardcodeTNTangle

This commit is contained in:
gnembon committed 2020-01-27 14:48:56 -04:00
1 parent e7d9c62b11
commit 6c1d3dd5f6
2 files changed
+2 -2

No files matched your search

@@ -36,7 +36,7 @@ public abstract class TntEntityMixin extends Entity implements TntEntityInterfac
at = @At("RETURN"))
private void modifyTNTAngle(World world, double x, double y, double z, LivingEntity entity, CallbackInfo ci)
{
if (CarpetSettings.hardcodeTNTangle != -1)
if (CarpetSettings.hardcodeTNTangle != -1.0D)
setVelocity(-Math.sin(CarpetSettings.hardcodeTNTangle) * 0.02, 0.2, -Math.cos(CarpetSettings.hardcodeTNTangle) * 0.02);
}