mirror of
https://github.com/seppukudevelopment/seppuku
synced 2024-12-12 09:44:42 +00:00
Cape module updated to support .reload
This commit is contained in:
parent
6ecd5ea5c1
commit
68dce6df85
@ -20,6 +20,8 @@ public final class CapeModule extends Module {
|
||||
@Listener
|
||||
public void displayCape(EventCapeLocation event) {
|
||||
if (Minecraft.getMinecraft().player != null && event.getPlayer() == Minecraft.getMinecraft().player) {
|
||||
String uuid = Minecraft.getMinecraft().player.getUniqueID().toString().replace("-", "");
|
||||
if (Seppuku.INSTANCE.getCapeManager().hasCape(uuid)) {
|
||||
final ResourceLocation cape = Seppuku.INSTANCE.getCapeManager().getCape(event.getPlayer());
|
||||
if (cape != null) {
|
||||
event.setLocation(cape);
|
||||
@ -27,5 +29,6 @@ public final class CapeModule extends Module {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user