mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 09:27:43 +01:00
Update to 1.14.3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 86ab92142299a1e2412d3aeebea99d4cabac9508 Mon Sep 17 00:00:00 2001
|
||||
From f2c0268badfcffd1e43a9fba97f02b4401c04173 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Thu, 6 Jun 2019 22:15:46 -0500
|
||||
Subject: [PATCH] Add config for items breaking turtle eggs
|
||||
@@ -9,14 +9,14 @@ Subject: [PATCH] Add config for items breaking turtle eggs
|
||||
2 files changed, 17 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockTurtleEgg.java b/src/main/java/net/minecraft/server/BlockTurtleEgg.java
|
||||
index a32ea2a4f..37a394d92 100644
|
||||
index fd91785bfe..5bb645eb9c 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockTurtleEgg.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockTurtleEgg.java
|
||||
@@ -163,6 +163,17 @@ public class BlockTurtleEgg extends Block {
|
||||
}
|
||||
|
||||
private boolean a(World world, Entity entity) {
|
||||
- return entity instanceof EntityTurtle ? false : (entity instanceof EntityLiving && !(entity instanceof EntityHuman) ? world.getGameRules().getBoolean("mobGriefing") : true);
|
||||
- return entity instanceof EntityTurtle ? false : (entity instanceof EntityLiving && !(entity instanceof EntityHuman) ? world.getGameRules().getBoolean(GameRules.MOB_GRIEFING) : true);
|
||||
+ // Purpur start
|
||||
+ if (entity instanceof EntityTurtle) {
|
||||
+ return false;
|
||||
@@ -25,14 +25,14 @@ index a32ea2a4f..37a394d92 100644
|
||||
+ return false;
|
||||
+ }
|
||||
+ if (entity instanceof EntityLiving && !(entity instanceof EntityHuman)) {
|
||||
+ return world.getGameRules().getBoolean("mobGriefing");
|
||||
+ return world.getGameRules().getBoolean(GameRules.MOB_GRIEFING);
|
||||
+ }
|
||||
+ return true;
|
||||
+ // Purpur end
|
||||
}
|
||||
}
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index 7f1c3ccb6..a649a4c35 100644
|
||||
index 7f1c3ccb6c..a649a4c359 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -101,4 +101,9 @@ public class PurpurWorldConfig {
|
||||
|
||||
Reference in New Issue
Block a user