mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 10:27:44 +01:00
Make bees ridable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 618e343c928140ff1bae228def0b56576dbfeb1e Mon Sep 17 00:00:00 2001
|
||||
From 2f6c2fb4db5eda2d786d13a0894e7e5c5e4bc572 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
||||
Date: Thu, 19 Dec 2019 18:09:40 -0600
|
||||
Subject: [PATCH] Check for PurpurClient for riding mobs
|
||||
@@ -67,7 +67,7 @@ index a8e053b9f..6578af934 100644
|
||||
try {
|
||||
byte[] data = new byte[packetplayincustompayload.data.readableBytes()];
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
index efdf01e98..d242fac8c 100644
|
||||
index 86600fce0..f381e2ab4 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.server.IRegistry;
|
||||
@@ -78,15 +78,15 @@ index efdf01e98..d242fac8c 100644
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
@@ -395,6 +396,7 @@ public class PurpurConfig {
|
||||
@@ -396,6 +397,7 @@ public class PurpurConfig {
|
||||
public static boolean ridableZombie = true;
|
||||
public static boolean ridableHusk = true;
|
||||
public static boolean ridableZombieVillager = true;
|
||||
+ public static String ridablesNoClientModWarning = "&cYou must have the PurpurClient mod to ride this mob";
|
||||
private static void enableRidableMobs() {
|
||||
ridableBat = getBoolean("settings.ridable.bat", ridableBat);
|
||||
ridableBlaze = getBoolean("settings.ridable.blaze", ridableBlaze);
|
||||
@@ -453,6 +455,10 @@ public class PurpurConfig {
|
||||
ridableBee = getBoolean("settings.ridable.bee", ridableBee);
|
||||
@@ -455,6 +457,10 @@ public class PurpurConfig {
|
||||
ridableZombie = getBoolean("settings.ridable.zombie", ridableZombie);
|
||||
ridableZombiePigman = getBoolean("settings.ridable.zombie_pigman", ridableZombiePigman);
|
||||
ridableZombieVillager = getBoolean("settings.ridable.zombie_villager", ridableZombieVillager);
|
||||
|
||||
Reference in New Issue
Block a user