mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 21:54:08 +00:00
Ew this looks gross
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user