mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-10-06 03:17:27 +02:00
Fix ocelot crash
This commit is contained in:
parent
01ed1dd0d4
commit
fdf5c762c8
@ -145,9 +145,10 @@ public class OcelotController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected SoundEffect G() {
|
||||
MinecraftKey a = SoundEffect.a.b(super.G());
|
||||
return npc == null || !npc.data().has(NPC.AMBIENT_SOUND_METADATA) ? super.G()
|
||||
: SoundEffect.a.get(new MinecraftKey(
|
||||
npc.data().get(NPC.AMBIENT_SOUND_METADATA, SoundEffect.a.b(super.G()).toString())));
|
||||
npc.data().get(NPC.AMBIENT_SOUND_METADATA, a == null ? "" : a.toString())));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -206,7 +206,6 @@ public class Skin {
|
||||
}
|
||||
|
||||
private void setData(@Nullable GameProfile profile) {
|
||||
System.out.println("SET DATA");
|
||||
if (profile == null) {
|
||||
isValid = false;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user