修复遥控器的代码调用错误
This commit is contained in:
parent
8d494f6aee
commit
4e6a86a067
1 changed files with 6 additions and 2 deletions
|
@ -54,10 +54,14 @@ public class Monitor extends Item {
|
||||||
|
|
||||||
if (stack.getOrCreateTag().getBoolean("Using")) {
|
if (stack.getOrCreateTag().getBoolean("Using")) {
|
||||||
stack.getOrCreateTag().putBoolean("Using", false);
|
stack.getOrCreateTag().putBoolean("Using", false);
|
||||||
Minecraft.getInstance().options.setCameraType(CameraType.FIRST_PERSON);
|
if (world.isClientSide) {
|
||||||
|
Minecraft.getInstance().options.setCameraType(CameraType.FIRST_PERSON);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
stack.getOrCreateTag().putBoolean("Using", true);
|
stack.getOrCreateTag().putBoolean("Using", true);
|
||||||
Minecraft.getInstance().options.setCameraType(CameraType.THIRD_PERSON_BACK);
|
if (world.isClientSide) {
|
||||||
|
Minecraft.getInstance().options.setCameraType(CameraType.THIRD_PERSON_BACK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DroneEntity drone = player.level().getEntitiesOfClass(DroneEntity.class, player.getBoundingBox().inflate(512))
|
DroneEntity drone = player.level().getEntitiesOfClass(DroneEntity.class, player.getBoundingBox().inflate(512))
|
||||||
|
|
Loading…
Add table
Reference in a new issue