1.20.2-pre4
This commit is contained in:
1 parent
e13c256611
commit
93079eb9ba
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check https://fabricmc.net/develop/
|
# check https://fabricmc.net/develop/
|
||||||
minecraft_version=1.20.2-pre2
|
minecraft_version=1.20.2-pre4
|
||||||
loader_version=0.14.22
|
loader_version=0.14.22
|
||||||
jsr305_version=3.0.2
|
jsr305_version=3.0.2
|
||||||
fabric_version=0.88.2+1.20.2
|
fabric_version=0.88.2+1.20.2
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package carpet.helpers;
|
|||||||
|
|
||||||
import carpet.fakes.PistonBlockInterface;
|
import carpet.fakes.PistonBlockInterface;
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.core.BlockSource;
|
|
||||||
import net.minecraft.core.Direction;
|
import net.minecraft.core.Direction;
|
||||||
|
import net.minecraft.core.dispenser.BlockSource;
|
||||||
import net.minecraft.core.dispenser.DispenseItemBehavior;
|
import net.minecraft.core.dispenser.DispenseItemBehavior;
|
||||||
import net.minecraft.core.dispenser.OptionalDispenseItemBehavior;
|
import net.minecraft.core.dispenser.OptionalDispenseItemBehavior;
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
@@ -51,9 +51,9 @@ public class BlockRotator
|
|||||||
|
|
||||||
public static ItemStack dispenserRotate(BlockSource source, ItemStack stack)
|
public static ItemStack dispenserRotate(BlockSource source, ItemStack stack)
|
||||||
{
|
{
|
||||||
Direction sourceFace = source.getBlockState().getValue(DispenserBlock.FACING);
|
Direction sourceFace = source.state().getValue(DispenserBlock.FACING);
|
||||||
Level world = source.getLevel();
|
Level world = source.level();
|
||||||
BlockPos blockpos = source.getPos().relative(sourceFace); // offset
|
BlockPos blockpos = source.pos().relative(sourceFace); // offset
|
||||||
BlockState blockstate = world.getBlockState(blockpos);
|
BlockState blockstate = world.getBlockState(blockpos);
|
||||||
Block block = blockstate.getBlock();
|
Block block = blockstate.getBlock();
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ public class BlockRotator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Send block update to the block that just have been rotated.
|
// Send block update to the block that just have been rotated.
|
||||||
world.neighborChanged(blockpos, block, source.getPos());
|
world.neighborChanged(blockpos, block, source.pos());
|
||||||
|
|
||||||
return stack;
|
return stack;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ public class FileArgument
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
dataInputStream.readUTF();
|
dataInputStream.readUTF();
|
||||||
return TagTypes.getType(b).load(dataInputStream, 0, NbtAccounter.UNLIMITED);
|
return TagTypes.getType(b).load(dataInputStream, NbtAccounter.unlimitedHeap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException secondIO)
|
catch (IOException secondIO)
|
||||||
|
|||||||
Reference in new issue
Block a user