修复无人机视角渲染等问题
This commit is contained in:
parent
41f09641b0
commit
fd1a829823
3 changed files with 5 additions and 11 deletions
|
@ -408,15 +408,6 @@ public class ClickHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO do we need cloth config?
|
|
||||||
// private static void handleConfigScreen(Player player) {
|
|
||||||
// if (ModList.get().isLoaded(CompatHolder.CLOTH_CONFIG)) {
|
|
||||||
// CompatHolder.hasMod(CompatHolder.CLOTH_CONFIG, () -> Minecraft.getInstance().setScreen(ClothConfigHelper.getConfigScreen(null)));
|
|
||||||
// } else {
|
|
||||||
// player.displayClientMessage(Component.translatable("tips.superbwarfare.no_cloth_config").withStyle(ChatFormatting.RED), true);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
private static void handleDismountPress(Player player) {
|
private static void handleDismountPress(Player player) {
|
||||||
var vehicle = player.getVehicle();
|
var vehicle = player.getVehicle();
|
||||||
if (!(vehicle instanceof VehicleEntity)) return;
|
if (!(vehicle instanceof VehicleEntity)) return;
|
||||||
|
|
|
@ -136,7 +136,9 @@ public class DroneEntity extends MobileVehicleEntity implements GeoEntity {
|
||||||
compound.putInt("KamikazeMode", this.entityData.get(KAMIKAZE_MODE));
|
compound.putInt("KamikazeMode", this.entityData.get(KAMIKAZE_MODE));
|
||||||
|
|
||||||
CompoundTag item = new CompoundTag();
|
CompoundTag item = new CompoundTag();
|
||||||
this.currentItem.save(level().registryAccess(), item);
|
if (!item.isEmpty()) {
|
||||||
|
this.currentItem.save(level().registryAccess(), item);
|
||||||
|
}
|
||||||
compound.put("Item", item);
|
compound.put("Item", item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -940,7 +940,8 @@ public class ClientEventHandler {
|
||||||
|
|
||||||
if (drone != null && tag.getBoolean("Using")) {
|
if (drone != null && tag.getBoolean("Using")) {
|
||||||
if (Minecraft.getInstance().gameRenderer.currentEffect() == null) {
|
if (Minecraft.getInstance().gameRenderer.currentEffect() == null) {
|
||||||
Minecraft.getInstance().gameRenderer.loadEffect(Mod.loc("shaders/post/scan_pincushion.json"));
|
// TODO 无人机 shader
|
||||||
|
// Minecraft.getInstance().gameRenderer.loadEffect(Mod.loc("shaders/post/scan_pincushion.json"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue