geforkt von Mirrors/Paper
Re-add Spigot's hopper-check feature
Dieser Commit ist enthalten in:
Ursprung
15512b5459
Commit
51cbd00f88
38
Spigot-Server-Patches/Re-add-Spigot-s-hopper-check-feature.patch
Normale Datei
38
Spigot-Server-Patches/Re-add-Spigot-s-hopper-check-feature.patch
Normale Datei
@ -0,0 +1,38 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Byteflux <byte@byteflux.net>
|
||||
Date: Thu, 13 Aug 2015 10:33:34 -0700
|
||||
Subject: [PATCH] Re-add Spigot's hopper-check feature
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
@@ -0,0 +0,0 @@ public class TileEntityHopper extends TileEntityContainer implements IHopper, IU
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+ // PaperSpigot start
|
||||
+ if (world.paperSpigotConfig.useHopperCheck && !this.n()) {
|
||||
+ this.d(world.spigotConfig.hopperCheck);
|
||||
+ }
|
||||
+ // PaperSpigot end
|
||||
return false;
|
||||
} else {
|
||||
return false;
|
||||
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
|
||||
{
|
||||
tntExplosionVolume = getFloat( "tnt-explosion-volume", 4.0F );
|
||||
}
|
||||
+
|
||||
+ public boolean useHopperCheck;
|
||||
+ private void useHopperCheck()
|
||||
+ {
|
||||
+ useHopperCheck = getBoolean( "use-hopper-check", false );
|
||||
+ }
|
||||
}
|
||||
--
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren