From 984d7e873dfdb093b784734e1a015a6ee95f1875 Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Mon, 26 Jun 2023 13:05:09 +0200 Subject: [PATCH] set default color to black instead of white --- .../main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java | 2 +- .../lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java b/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java index f596b3e..6c6e7f7 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java @@ -53,7 +53,7 @@ public class PropertyCommand implements CommandHandler { valueName = "NONE"; } else if (type == Color.class && context.argSize() < 1 && npc.getProperty(property) != null) { - value = Color.WHITE; + value = Color.BLACK; valueName = "NONE"; } else { diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java b/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java index d5baef5..a1b8763 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java @@ -51,7 +51,7 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry { registerType("offhand", ItemStack.class); registerType("using_item", false); // TODO: fix it for 1.8 and add new property to use offhand item and riptide animation - registerType("potion_color", Color.WHITE); + registerType("potion_color", Color.BLACK); registerType("potion_ambient", false); registerType("shaking", false); registerType("baby", false); // TODO