Skip to content

Commit

Permalink
Remove the spectator bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Mar 9, 2024
1 parent 918098d commit 03eadf4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void run() {
lastPos.set(cameraMC.x, cameraMC.y, cameraMC.z);
Vec3d camera = lastPos;
culling.resetCache();
boolean noCulling = client.player.isSpectator() || client.gameSettings.thirdPersonView != 0;
boolean noCulling = client.gameSettings.thirdPersonView != 0;
Iterator<TileEntity> iterator = client.world.loadedTileEntityList.iterator();
TileEntity entry;
while(iterator.hasNext()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package dev.tr7zw.entityculling;


import java.util.Arrays;
import java.util.List;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.common.Mod;
Expand All @@ -12,7 +8,6 @@
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent;
import zone.rong.mixinbooter.IEarlyMixinLoader;

@Mod(modid = "entityculling", name = "EntityCulling", version = "@VER@", clientSideOnly = true)
public class EntityCullingMod extends EntityCullingModBase {
Expand Down

0 comments on commit 03eadf4

Please sign in to comment.