freekin egyptian braces
This commit is contained in:
1 parent
734dc95dab
commit
9bbaaccb3e
12 files changed
+626
-87
No files matched your search
@@ -45,9 +45,12 @@ public abstract class HopperBlockEntityMixin extends LootableContainerBlockEntit
|
||||
DyeColor wool_color = WoolTool.getWoolColorAtPosition(
|
||||
getWorld(),
|
||||
new BlockPos(getHopperX(), getHopperY(), getHopperZ()).offset(this.getCachedState().get(HopperBlock.FACING)));
|
||||
if (wool_color != null) {
|
||||
for (int i = 0; i < this.getInvSize(); ++i) {
|
||||
if (!this.getInvStack(i).isEmpty()) {
|
||||
if (wool_color != null)
|
||||
{
|
||||
for (int i = 0; i < this.getInvSize(); ++i)
|
||||
{
|
||||
if (!this.getInvStack(i).isEmpty())
|
||||
{
|
||||
ItemStack itemstack = this.getInvStack(i);//.copy();
|
||||
HopperCounter.COUNTERS.get(wool_color).add(this.getWorld().getServer(), itemstack);
|
||||
this.setInvStack(i, ItemStack.EMPTY);
|
||||
|
||||
@@ -11,11 +11,11 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@Mixin(TntBlock.class)
|
||||
public abstract class TntBlockMixin
|
||||
{
|
||||
// Add carpet rule check for TNTDoNotUpdate to an if statement.
|
||||
// Add carpet rule check for tntDoNotUpdate to an if statement.
|
||||
@Redirect(method = "onBlockAdded", at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/World;isReceivingRedstonePower(Lnet/minecraft/util/math/BlockPos;)Z"))
|
||||
private boolean isTNTDoNotUpdate(World world, BlockPos blockPos)
|
||||
{
|
||||
return !CarpetSettings.TNTDoNotUpdate && world.isReceivingRedstonePower(blockPos);
|
||||
return !CarpetSettings.tntDoNotUpdate && world.isReceivingRedstonePower(blockPos);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user