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
|
@Listener
|
||||||
public void sendPacket(EventSendPacket event) {
|
public void sendPacket(EventSendPacket event) {
|
||||||
if (event.getStage() == EventStageable.EventStage.PRE) {
|
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;
|
return;
|
||||||
|
|
||||||
if (Minecraft.getMinecraft().world != null) {
|
if (Minecraft.getMinecraft().world != null) {
|
||||||
|
@ -166,7 +166,7 @@ public final class FreeCamModule extends Module {
|
||||||
@Listener
|
@Listener
|
||||||
public void receivePacket(EventReceivePacket event) {
|
public void receivePacket(EventReceivePacket event) {
|
||||||
if (event.getStage() == EventStageable.EventStage.PRE) {
|
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;
|
return;
|
||||||
|
|
||||||
if (event.getPacket() instanceof SPacketSetPassengers) {
|
if (event.getPacket() instanceof SPacketSetPassengers) {
|
||||||
|
|
Loading…
Reference in New Issue