Fix Rainbow Sheep mount not changing colours

This commit is contained in:
Sam 2017-09-09 02:47:35 +01:00
parent 80817a5e01
commit b698cfe7b4

View File

@ -89,6 +89,7 @@ public enum GemHuntersMountType
{
private DisguiseManager _disguise = Managers.get(DisguiseManager.class);
private int _tick;
@Override
public Horse spawn(Location location, DisguiseManager manager)
@ -116,7 +117,7 @@ public enum GemHuntersMountType
}
DisguiseSheep sheep = (DisguiseSheep) base;
int mod = horse.getTicksLived() % 40;
int mod = _tick++ % 4;
if (mod == 0) sheep.setColor(DyeColor.RED);
else if (mod == 1) sheep.setColor(DyeColor.YELLOW);