mirror of
https://github.com/seppukudevelopment/seppuku
synced 2025-03-03 19:27:42 +00:00
FakePlayer: Player null check
This commit is contained in:
parent
a37d2092a5
commit
bd0cc23834
@ -24,7 +24,7 @@ public final class FakePlayerModule extends Module {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
super.onEnable();
|
||||
if (mc.world != null) {
|
||||
if (mc.player != null && mc.world != null) {
|
||||
entity = new EntityOtherPlayerMP(mc.world, new GameProfile(mc.player.getUniqueID(), username.getValue()));
|
||||
entity.copyLocationAndAnglesFrom(mc.player);
|
||||
entity.inventory.copyInventory(mc.player.inventory);
|
||||
|
Loading…
Reference in New Issue
Block a user