Fishing hook

This commit is contained in:
2026-09-28 20:52:53 -03:00
parent d606bc4b55
commit ad6adb49dc
16 changed files with 258 additions and 37 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ export class LevelRenderer {
}
// every entity but the one the camera is in
render_entities(level: ClientLevel, camera_entity: Entity, partial_tick: number) {
render_entities(level: ClientLevel, camera: Camera, camera_entity: Entity, partial_tick: number) {
flush_batch();
const default_skin = AssetManager.instance.get<Texture>("bworld:skin");
for (const entity of level.entities.values()) {
@@ -114,7 +114,7 @@ export class LevelRenderer {
if (entity instanceof ItemEntity) {
render_item_entity(entity, partial_tick);
} else if (entity instanceof RemoteEntity) {
render_mod_entity(entity, partial_tick);
render_mod_entity(entity, camera, partial_tick);
}
}
flush_batch();