|
|
@ -1322,7 +1322,7 @@ |
|
|
|
Block block = this.getBlock(p_72878_1_, p_72878_2_, p_72878_3_);
|
|
|
|
Block block = this.getBlock(p_72878_1_, p_72878_2_, p_72878_3_);
|
|
|
|
- return block.shouldCheckWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_) ? this.getBlockPowerInput(p_72878_1_, p_72878_2_, p_72878_3_) : block.isProvidingWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_);
|
|
|
|
- return block.shouldCheckWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_) ? this.getBlockPowerInput(p_72878_1_, p_72878_2_, p_72878_3_) : block.isProvidingWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(!indirect.containsKey(block) || System.currentTimeMillis() - (indirect.get(block)[1]) > 50)
|
|
|
|
+ if(!indirect.containsKey(block) || System.currentTimeMillis() - (indirect.get(block)[1]) > 1)
|
|
|
|
+ {
|
|
|
|
+ {
|
|
|
|
+ int power = block.shouldCheckWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_) ? this.getBlockPowerInput(p_72878_1_, p_72878_2_, p_72878_3_) : block.isProvidingWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_);
|
|
|
|
+ int power = block.shouldCheckWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_) ? this.getBlockPowerInput(p_72878_1_, p_72878_2_, p_72878_3_) : block.isProvidingWeakPower(this, p_72878_1_, p_72878_2_, p_72878_3_, p_72878_4_);
|
|
|
|
+ indirect.put(block, new long[] { power, (System.currentTimeMillis()) });
|
|
|
|
+ indirect.put(block, new long[] { power, (System.currentTimeMillis()) });
|
|
|
|