fix defaults on hardcodeTNTangle
This commit is contained in:
1 parent
e7d9c62b11
commit
6c1d3dd5f6
2 files changed
+2
-2
No files matched your search
@@ -131,7 +131,7 @@ public class CarpetSettings
|
||||
|
||||
@Rule( desc = "Sets the horizontal random angle on TNT for debugging of TNT contraptions", category = TNT, options = "-1", strict = false,
|
||||
validate = TNTAngleValidator.class, extra = "Set to -1 for default behavior")
|
||||
public static double hardcodeTNTangle;
|
||||
public static double hardcodeTNTangle = -1.0D;
|
||||
|
||||
private static class TNTAngleValidator extends Validator<Double> {
|
||||
@Override
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user