aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0276-Here-s-Johnny.patch
blob: fb2a745aa8d2974d57609a2948e7e01d7f6ffe07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: BillyGalbreath <Blake.Galbreath@GMail.com>
Date: Fri, 12 Oct 2018 01:37:22 -0500
Subject: [PATCH] Here's Johnny!


diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
index 3c5994e9862e5caa257ee6a21f8fba2df39c98c5..50a318d7a6cec1e137c913f1d04a7e9606ba2ec2 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
@@ -24,4 +24,14 @@ public class CraftVindicator extends CraftIllager implements Vindicator {
     public EntityType getType() {
         return EntityType.VINDICATOR;
     }
+
+    // Paper start
+    public boolean isJohnny() {
+        return getHandle().isJohnny;
+    }
+
+    public void setJohnny(boolean johnny) {
+        getHandle().isJohnny = johnny;
+    }
+    // Paper end
 }