Cape module updated to support .reload
This commit is contained in:
parent
6ecd5ea5c1
commit
68dce6df85
|
@ -20,10 +20,13 @@ public final class CapeModule extends Module {
|
||||||
@Listener
|
@Listener
|
||||||
public void displayCape(EventCapeLocation event) {
|
public void displayCape(EventCapeLocation event) {
|
||||||
if (Minecraft.getMinecraft().player != null && event.getPlayer() == Minecraft.getMinecraft().player) {
|
if (Minecraft.getMinecraft().player != null && event.getPlayer() == Minecraft.getMinecraft().player) {
|
||||||
final ResourceLocation cape = Seppuku.INSTANCE.getCapeManager().getCape(event.getPlayer());
|
String uuid = Minecraft.getMinecraft().player.getUniqueID().toString().replace("-", "");
|
||||||
if (cape != null) {
|
if (Seppuku.INSTANCE.getCapeManager().hasCape(uuid)) {
|
||||||
event.setLocation(cape);
|
final ResourceLocation cape = Seppuku.INSTANCE.getCapeManager().getCape(event.getPlayer());
|
||||||
event.setCanceled(true);
|
if (cape != null) {
|
||||||
|
event.setLocation(cape);
|
||||||
|
event.setCanceled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue