Ew this looks gross

This commit is contained in:
Kam committed 2024-02-12 03:18:51 -05:00
1 parent 886b55d6d6
commit 3ea96ab14f
1 file changed
+3 -4
@@ -799,11 +799,10 @@ public class NoppesUtilServer {
int i = MathHelper.floor_double(entity.posX / 16.0D);
int j = MathHelper.floor_double(entity.posZ / 16.0D);
if (!entity.forceSpawn && !worldObj.checkChunksExist(
(int)entity.posX,(int)entity.posY,(int)entity.posZ,(int)entity.posX,(int)entity.posY,(int)entity.posZ
))
{
(int)entity.posX,(int)entity.posY,(int)entity.posZ,(int)entity.posX,(int)entity.posY,(int)entity.posZ)) {
return null;
} else {
}
else {
worldObj.getChunkFromChunkCoords(i, j).addEntity(entity);
worldObj.loadedEntityList.add(entity);
worldObj.onEntityAdded(entity);