cape system (<3 gaba)
This commit is contained in:
parent
570b1d5467
commit
07291c0da9
2 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ package me.night0721.lilase.utils.capes;
|
|||
|
||||
import lombok.AllArgsConstructor;
|
||||
import me.night0721.lilase.Lilase;
|
||||
import me.night0721.lilase.utils.HWIDUtils;
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.client.renderer.entity.RenderPlayer;
|
||||
|
|
|
@ -11,7 +11,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|||
public class CapeManager {
|
||||
@SubscribeEvent
|
||||
public void onJoin(EntityJoinWorldEvent event) {
|
||||
if (event.entity instanceof EntityPlayer) {
|
||||
if (event.entity instanceof EntityPlayer && Lilase.capeDatabase.userHasCape(event.entity.getName())) {
|
||||
Lilase.mc.gameSettings.setModelPartEnabled(EnumPlayerModelParts.CAPE, true);
|
||||
Lilase.mc.getRenderManager().getSkinMap().values().forEach(p -> p.addLayer(new CapeLayer(p)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue