29 Zeilen
1.4 KiB
Diff
29 Zeilen
1.4 KiB
Diff
From 7913b1797fbba21781b1fd38c82f934e312dcc54 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <Zbob750@live.com>
|
|
Date: Tue, 8 Jul 2014 16:29:49 -0500
|
|
Subject: [PATCH] Fix directional TNT bias
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityTNTPrimed.java b/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
|
index a442cb1..252ed04 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
|
@@ -19,11 +19,11 @@ public class EntityTNTPrimed extends Entity {
|
|
public EntityTNTPrimed(World world, double d0, double d1, double d2, EntityLiving entityliving) {
|
|
this(world);
|
|
this.setPosition(d0, d1, d2);
|
|
- float f = (float) (Math.random() * 3.1415927410125732D * 2.0D);
|
|
+ //float f = (float) (Math.random() * 3.1415927410125732D * 2.0D); // PaperSpigot - Fix directional TNT bias
|
|
|
|
- this.motX = (double) (-((float) Math.sin((double) f)) * 0.02F);
|
|
+ this.motX = // PaperSpigot - Fix directional TNT bias //(double) (-((float) Math.sin((double) f)) * 0.02F);
|
|
this.motY = 0.20000000298023224D;
|
|
- this.motZ = (double) (-((float) Math.cos((double) f)) * 0.02F);
|
|
+ this.motZ = // PaperSpigot - Fix directional TNT bias //(double) (-((float) Math.cos((double) f)) * 0.02F);
|
|
this.fuseTicks = 80;
|
|
this.lastX = d0;
|
|
this.lastY = d1;
|
|
--
|
|
1.9.1
|
|
|