2014-08-10 00:27:35 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: drXor <mcyoung@mit.edu>
|
2014-08-25 23:30:52 +02:00
|
|
|
Date: Sat, 9 Aug 2014 13:56:51 -0400
|
|
|
|
Subject: [PATCH] Configurable Hanging Tick
|
2014-08-10 00:27:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityHanging.java b/src/main/java/net/minecraft/server/EntityHanging.java
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/EntityHanging.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityHanging.java
|
|
|
|
@@ -0,0 +0,0 @@ public abstract class EntityHanging extends Entity {
|
|
|
|
this.lastX = this.locX;
|
|
|
|
this.lastY = this.locY;
|
|
|
|
this.lastZ = this.locZ;
|
2016-02-29 22:33:06 +01:00
|
|
|
- if (this.d++ == 100 && !this.world.isClientSide) {
|
|
|
|
+ if (this.d++ == this.world.spigotConfig.hangingTickFrequency && !this.world.isClientSide) { // Spigot
|
|
|
|
this.d = 0;
|
2014-08-10 00:27:35 +02:00
|
|
|
if (!this.dead && !this.survives()) {
|
|
|
|
// CraftBukkit start - fire break events
|
2014-08-25 23:30:52 +02:00
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
2014-08-10 00:27:35 +02:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
2014-08-25 23:30:52 +02:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
@@ -0,0 +0,0 @@ public class SpigotWorldConfig
|
|
|
|
maxTntTicksPerTick = getInt( "max-tnt-per-tick", 100 );
|
|
|
|
log( "Max TNT Explosions: " + maxTntTicksPerTick );
|
2014-08-10 00:27:35 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int hangingTickFrequency;
|
2014-08-25 23:30:52 +02:00
|
|
|
+ private void hangingTickFrequency()
|
2014-08-10 00:27:35 +02:00
|
|
|
+ {
|
2014-08-25 23:30:52 +02:00
|
|
|
+ hangingTickFrequency = getInt( "hanging-tick-frequency", 100 );
|
2014-08-10 00:27:35 +02:00
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|