mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Turbines now render and look fancy, fixed some multiblock code
This commit is contained in:
1 parent
51c9ca061c
commit
6e9ee32df1
10 files changed
+198
-55
No files matched your search
@@ -405,14 +405,14 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
}
|
||||
|
||||
List<Integer> idsFound = new ArrayList<Integer>();
|
||||
int idToUse = -1;
|
||||
List<String> idsFound = new ArrayList<String>();
|
||||
String idToUse = null;
|
||||
|
||||
for(Coord4D obj : structureFound.locations)
|
||||
{
|
||||
TileEntityMultiblock<T> tileEntity = (TileEntityMultiblock<T>)obj.getTileEntity(pointer.getWorldObj());
|
||||
|
||||
if(tileEntity.cachedID != -1)
|
||||
if(tileEntity.cachedID != null)
|
||||
{
|
||||
idsFound.add(tileEntity.cachedID);
|
||||
}
|
||||
@@ -423,7 +423,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
|
||||
if(!idsFound.isEmpty())
|
||||
{
|
||||
for(int id : idsFound)
|
||||
for(String id : idsFound)
|
||||
{
|
||||
if(getManager().inventories.get(id) != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user