mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-18 11:29:28 +00:00
Another potential NPE fixed.
This commit is contained in:
1 parent
732de47276
commit
da6743166e
1 file changed
+6
-1
@@ -4,6 +4,7 @@ import java.util.WeakHashMap;
|
||||
|
||||
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
|
||||
|
||||
import mcp.mobius.opis.modOpis;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class ProfilerRenderTileEntity extends ProfilerAbstract {
|
||||
@@ -28,6 +29,10 @@ public class ProfilerRenderTileEntity extends ProfilerAbstract {
|
||||
@Override
|
||||
public void stop(Object key){
|
||||
clock.stop();
|
||||
data.get((TileEntity)key).addValue((double)clock.timeDelta);
|
||||
try{
|
||||
data.get((TileEntity)key).addValue((double)clock.timeDelta);
|
||||
} catch (Exception e) {
|
||||
modOpis.log.warning(String.format("Error while profiling entity %s\n", key));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user