Fixed FreecamModule in single-player

This commit is contained in:
noil 2023-03-31 18:33:29 -04:00
parent f692b7f753
commit 06b50e91c5
1 changed files with 2 additions and 2 deletions

View File

@ -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) {