MCP update.

Fixed a problem with TileEntity sending.
This commit is contained in:
Eloraam 2011-10-19 02:00:50 +00:00
parent bf5e706f06
commit f1f672b5fd
2 changed files with 5 additions and 5 deletions

View file

@ -113,7 +113,7 @@
} }
@@ -334,8 +315,6 @@ @@ -334,8 +315,6 @@
field_35845_c[j1] = -999; precipitationHeightMap[j1] = -999;
} }
int k1 = heightMap[k << 4 | i] & 0xff; int k1 = heightMap[k << 4 | i] & 0xff;
- worldObj.getClass(); - worldObj.getClass();
@ -170,7 +170,7 @@
isModified = true; isModified = true;
return true; return true;
@@ -410,8 +387,6 @@ @@ -410,8 +387,6 @@
field_35845_c[i1] = -999; precipitationHeightMap[i1] = -999;
} }
int j1 = heightMap[i1] & 0xff; int j1 = heightMap[i1] & 0xff;
- worldObj.getClass(); - worldObj.getClass();
@ -345,7 +345,7 @@
return k1; return k1;
} }
@@ -880,7 +866,6 @@ @@ -880,7 +866,6 @@
int l = field_35845_c[k]; int l = precipitationHeightMap[k];
if(l == -999) if(l == -999)
{ {
- worldObj.getClass(); - worldObj.getClass();

View file

@ -21,8 +21,8 @@
+ TileEntity te=(TileEntity)ob; + TileEntity te=(TileEntity)ob;
+ if(te.isInvalid()) continue; + if(te.isInvalid()) continue;
+ if(te.xCoord>=i && te.yCoord>=j && te.zCoord>=k + if(te.xCoord>=i && te.yCoord>=j && te.zCoord>=k
+ && te.xCoord<l && te.yCoord<i1 && + && te.xCoord<=l && te.yCoord<=i1 &&
+ te.zCoord<j1) { + te.zCoord<=j1) {
+ arraylist.add(te); + arraylist.add(te);
+ } + }
+ } + }