Fixed FreecamModule in single-player
This commit is contained in:
parent
f692b7f753
commit
06b50e91c5
|
@ -134,7 +134,7 @@ public final class FreeCamModule extends Module {
|
|||
@Listener
|
||||
public void sendPacket(EventSendPacket event) {
|
||||
if (event.getStage() == EventStageable.EventStage.PRE) {
|
||||
if (!Minecraft.getMinecraft().isSingleplayer()) // don't mess up single-player
|
||||
if (Minecraft.getMinecraft().isSingleplayer()) // don't mess up single-player
|
||||
return;
|
||||
|
||||
if (Minecraft.getMinecraft().world != null) {
|
||||
|
@ -166,7 +166,7 @@ public final class FreeCamModule extends Module {
|
|||
@Listener
|
||||
public void receivePacket(EventReceivePacket event) {
|
||||
if (event.getStage() == EventStageable.EventStage.PRE) {
|
||||
if (!Minecraft.getMinecraft().isSingleplayer()) // don't mess up single-player
|
||||
if (Minecraft.getMinecraft().isSingleplayer()) // don't mess up single-player
|
||||
return;
|
||||
|
||||
if (event.getPacket() instanceof SPacketSetPassengers) {
|
||||
|
|
Loading…
Reference in New Issue