@@ -90,7 +90,7 @@ public void loadRegion() {
90
90
i_3_ = 10 ;
91
91
i_2_ = 10 ;
92
92
}
93
- bool &= method840 (is , i_3_ , i_2_ );
93
+ bool &= decodeChunkObjects (is , i_3_ , i_2_ );
94
94
}
95
95
}
96
96
if (bool ) {
@@ -1243,35 +1243,35 @@ else if(face == 3)
1243
1243
1244
1244
}
1245
1245
1246
- private boolean method840 (byte [] arg1 , int arg2 , int arg3 ) {
1246
+ private boolean decodeChunkObjects (byte [] data , int arg2 , int arg3 ) {
1247
1247
boolean bool = true ;
1248
- Buffer class40_sub1 = new Buffer (arg1 );
1249
- int i = -1 ;
1248
+ Buffer buffer = new Buffer (data );
1249
+ int objectId = -1 ;
1250
1250
for (; ; ) {
1251
- int i_0_ = class40_sub1 .getSmart ();
1252
- if (i_0_ == 0 )
1251
+ int deltaId = buffer .getSmart ();
1252
+ if (deltaId == 0 )
1253
1253
break ;
1254
- i += i_0_ ;
1255
- int i_1_ = 0 ;
1254
+ objectId += deltaId ;
1255
+ int objectData = 0 ;
1256
1256
boolean bool_2_ = false ;
1257
1257
for (; ; ) {
1258
1258
if (bool_2_ ) {
1259
- int i_3_ = class40_sub1 .getSmart ();
1259
+ int i_3_ = buffer .getSmart ();
1260
1260
if (i_3_ == 0 )
1261
1261
break ;
1262
- class40_sub1 .getUnsignedByte ();
1262
+ buffer .getUnsignedByte ();
1263
1263
} else {
1264
- int i_4_ = class40_sub1 .getSmart ();
1264
+ int i_4_ = buffer .getSmart ();
1265
1265
if (i_4_ == 0 )
1266
1266
break ;
1267
- i_1_ += i_4_ + -1 ;
1268
- int i_5_ = i_1_ & 0x3f ;
1269
- int i_6_ = class40_sub1 .getUnsignedByte () >> 2 ;
1270
- int i_7_ = 0x3f & i_1_ >> 6 ;
1267
+ objectData += i_4_ + -1 ;
1268
+ int i_5_ = objectData & 0x3f ;
1269
+ int i_6_ = buffer .getUnsignedByte () >> 2 ;
1270
+ int i_7_ = 0x3f & objectData >> 6 ;
1271
1271
int i_8_ = i_7_ + arg2 ;
1272
1272
int i_9_ = i_5_ + arg3 ;
1273
1273
if (i_8_ > 0 && i_9_ > 0 && i_8_ < 103 && i_9_ < 103 ) {
1274
- GameObjectDefinition gameObjectDefinition = GameObjectDefinition .getDefinition (i );
1274
+ GameObjectDefinition gameObjectDefinition = GameObjectDefinition .getDefinition (objectId );
1275
1275
if (i_6_ != 22 || !VertexNormal .lowMemory || gameObjectDefinition .hasActions != 0 || gameObjectDefinition .obstructsGround ) {
1276
1276
bool_2_ = true ;
1277
1277
if (!gameObjectDefinition .method612 ()) {
0 commit comments