mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 20:22:05 -07:00
Configurable TNT water movement
This commit is contained in:
Submodule CraftBukkit updated: e9fcb5acdf...6780ea7955
41
Spigot-Server-Patches/Configurable-TNT-water-movement.patch
Normal file
41
Spigot-Server-Patches/Configurable-TNT-water-movement.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Byteflux <byte@byteflux.net>
|
||||
Date: Sat, 29 Nov 2014 23:05:52 -0800
|
||||
Subject: [PATCH] Configurable TNT water movement
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityTNTPrimed.java b/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityTNTPrimed.java
|
||||
@@ -0,0 +0,0 @@ public class EntityTNTPrimed extends Entity {
|
||||
public float getHeadHeight() {
|
||||
return 0.0F;
|
||||
}
|
||||
+
|
||||
+ /**
|
||||
+ * PaperSpigot - Configurable TNT water movement
|
||||
+ */
|
||||
+ @Override
|
||||
+ public boolean aK() {
|
||||
+ return world.paperSpigotConfig.tntMovesInWater;
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -0,0 +0,0 @@ public class PaperSpigotWorldConfig
|
||||
boatsDropBoats = getBoolean( "game-mechanics.boats-drop-boats", false );
|
||||
lessPickyTorches = getBoolean( "game-mechanics.less-picky-torch-placement", false );
|
||||
}
|
||||
+
|
||||
+ public boolean tntMovesInWater;
|
||||
+ private void tntMovesInWater()
|
||||
+ {
|
||||
+ tntMovesInWater = getBoolean("tnt-moves-in-water", true );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
1.9.4.msysgit.2
|
||||
|
Reference in New Issue
Block a user