Permalink
Browse files

Convert changed Bukkit DyeColor

  • Loading branch information...
PseudoKnight committed Aug 8, 2018
1 parent 2af196c commit 04a881630ec9f4b14969e2b014233d84ac83d996
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCDyeColor.java
@@ -21,4 +21,20 @@
}
return instance;
}
@Override
protected MCDyeColor getAbstractedEnumCustom(DyeColor concrete) {
if(concrete.equals(DyeColor.LIGHT_GRAY)) {
return MCDyeColor.SILVER;
}
return super.getAbstractedEnumCustom(concrete);
}
@Override
protected DyeColor getConcreteEnumCustom(MCDyeColor abstracted) {
if(abstracted.equals(MCDyeColor.SILVER)) {
return DyeColor.LIGHT_GRAY;
}
return super.getConcreteEnumCustom(abstracted);
}
}

0 comments on commit 04a8816

Please sign in to comment.