2014-10-25 05:25:14 +02:00
|
|
|
From dd64547b4501439260882f51130504ecd449e651 Mon Sep 17 00:00:00 2001
|
2014-08-07 21:18:11 +02:00
|
|
|
From: Zach Brown <Zbob750@live.com>
|
|
|
|
Date: Fri, 11 Jul 2014 03:54:06 -0500
|
2014-07-08 23:31:38 +02:00
|
|
|
Subject: [PATCH] Fix directional TNT bias
|
|
|
|
|
|
|
|
|
2014-08-07 21:18:11 +02:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityTNTPrimed.java b/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
2014-10-25 05:25:14 +02:00
|
|
|
index 2214660..1f98f8d 100644
|
2014-08-07 21:18:11 +02:00
|
|
|
--- 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
|
2014-07-08 23:31:38 +02:00
|
|
|
|
2014-08-07 21:18:11 +02:00
|
|
|
- this.motX = (double) (-((float) Math.sin((double) f)) * 0.02F);
|
|
|
|
+ this.motX = 0; // 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 = 0; // PaperSpigot - Fix directional TNT bias //(double) (-((float) Math.cos((double) f)) * 0.02F);
|
|
|
|
this.fuseTicks = 80;
|
|
|
|
this.lastX = d0;
|
|
|
|
this.lastY = d1;
|
2014-07-08 23:31:38 +02:00
|
|
|
--
|
|
|
|
1.9.1
|
2014-08-07 21:18:11 +02:00
|
|
|
|