Merge branch 'master' into 1.16
This commit is contained in:
commit
b50e6772ce
1 file changed
+10
-9
@@ -18,6 +18,7 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@@ -41,13 +42,6 @@ public abstract class RedstoneWireBlockMixin implements RedstoneWireBlockInterfa
|
|||||||
@Shadow
|
@Shadow
|
||||||
private BlockState update(World world_1, BlockPos blockPos_1, BlockState blockState_1) { return null; }
|
private BlockState update(World world_1, BlockPos blockPos_1, BlockState blockState_1) { return null; }
|
||||||
|
|
||||||
// =
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public BlockState updateLogicPublic(World world_1, BlockPos blockPos_1, BlockState blockState_1) {
|
|
||||||
return updateLogic(world_1, blockPos_1, blockState_1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Accessor("wiresGivePower")
|
@Accessor("wiresGivePower")
|
||||||
public abstract void setWiresGivePower(boolean wiresGivePower);
|
public abstract void setWiresGivePower(boolean wiresGivePower);
|
||||||
@@ -79,8 +73,15 @@ public abstract class RedstoneWireBlockMixin implements RedstoneWireBlockInterfa
|
|||||||
/**
|
/**
|
||||||
* @author theosib, soykaf, gnembon
|
* @author theosib, soykaf, gnembon
|
||||||
*/
|
*/
|
||||||
@Overwrite
|
@Inject(method = "updateLogic", at = @At("HEAD"), cancellable = true)
|
||||||
private BlockState updateLogic(World world_1, BlockPos blockPos_1, BlockState blockState_1) {
|
private void updateLogicAlternative(World world, BlockPos pos, BlockState state, CallbackInfoReturnable<BlockState> cir)
|
||||||
|
{
|
||||||
|
if (CarpetSettings.fastRedstoneDust)
|
||||||
|
cir.setReturnValue(updateLogicPublic(world, pos, state));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BlockState updateLogicPublic(World world_1, BlockPos blockPos_1, BlockState blockState_1) {
|
||||||
BlockState blockState_2 = blockState_1;
|
BlockState blockState_2 = blockState_1;
|
||||||
int int_1 = (Integer)blockState_1.get(POWER); // i
|
int int_1 = (Integer)blockState_1.get(POWER); // i
|
||||||
this.wiresGivePower = false;
|
this.wiresGivePower = false;
|
||||||
|
|||||||
Reference in new issue
Block a user