1.15.2-11
This commit is contained in:
1 parent
e04a8be9e8
commit
fbd917b005
17 files changed
+38
-38
No files matched your search
@@ -5,8 +5,8 @@ import carpet.settings.SettingsManager;
|
||||
import com.mojang.brigadier.CommandDispatcher;
|
||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||
import net.minecraft.client.network.packet.EntityVelocityUpdateS2CPacket;
|
||||
import net.minecraft.client.network.packet.RemoveEntityEffectS2CPacket;
|
||||
import net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket;
|
||||
import net.minecraft.network.packet.s2c.play.RemoveEntityStatusEffectS2CPacket;
|
||||
import net.minecraft.server.command.ServerCommandSource;
|
||||
import net.minecraft.command.arguments.EntityArgumentType;
|
||||
import net.minecraft.entity.effect.StatusEffects;
|
||||
@@ -63,9 +63,9 @@ public class CameraModeCommand
|
||||
{
|
||||
if (!(iCanHasPermissions(source, player))) return 0;
|
||||
player.setGameMode(GameMode.SURVIVAL);
|
||||
player.networkHandler.sendPacket(new RemoveEntityEffectS2CPacket(player.getEntityId(), StatusEffects.NIGHT_VISION));
|
||||
player.networkHandler.sendPacket(new RemoveEntityStatusEffectS2CPacket(player.getEntityId(), StatusEffects.NIGHT_VISION));
|
||||
player.removeStatusEffect(StatusEffects.NIGHT_VISION);
|
||||
player.networkHandler.sendPacket(new RemoveEntityEffectS2CPacket(player.getEntityId(), StatusEffects.CONDUIT_POWER));
|
||||
player.networkHandler.sendPacket(new RemoveEntityStatusEffectS2CPacket(player.getEntityId(), StatusEffects.CONDUIT_POWER));
|
||||
player.removeStatusEffect(StatusEffects.CONDUIT_POWER);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user