修复无人机视角渲染等问题

This commit is contained in:
Light_Quanta 2025-04-08 14:08:27 +08:00
parent 41f09641b0
commit fd1a829823
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
3 changed files with 5 additions and 11 deletions

View file

@ -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) {
var vehicle = player.getVehicle();
if (!(vehicle instanceof VehicleEntity)) return;

View file

@ -136,7 +136,9 @@ public class DroneEntity extends MobileVehicleEntity implements GeoEntity {
compound.putInt("KamikazeMode", this.entityData.get(KAMIKAZE_MODE));
CompoundTag item = new CompoundTag();
this.currentItem.save(level().registryAccess(), item);
if (!item.isEmpty()) {
this.currentItem.save(level().registryAccess(), item);
}
compound.put("Item", item);
}

View file

@ -940,7 +940,8 @@ public class ClientEventHandler {
if (drone != null && tag.getBoolean("Using")) {
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"));
}
}
}