mirror of
https://github.com/seppukudevelopment/seppuku
synced 2025-03-04 03:37:33 +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
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
super.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 = new EntityOtherPlayerMP(mc.world, new GameProfile(mc.player.getUniqueID(), username.getValue()));
|
||||||
entity.copyLocationAndAnglesFrom(mc.player);
|
entity.copyLocationAndAnglesFrom(mc.player);
|
||||||
entity.inventory.copyInventory(mc.player.inventory);
|
entity.inventory.copyInventory(mc.player.inventory);
|
||||||
|
Loading…
Reference in New Issue
Block a user