Working in part placement

This commit is contained in:
Sebastian Hartte
2020-07-01 21:27:37 +02:00
parent 8e031ca8d6
commit f2e3d81fd7
134 changed files with 1553 additions and 1494 deletions
@@ -18,7 +18,7 @@ public class SpatialDimensionExtraDataTest {
*/
@Test
public void testCreatedBufferSize() {
PacketByteBuf buffer = new SpatialDimensionExtraData(BlockPos.ZERO).write();
PacketByteBuf buffer = new SpatialDimensionExtraData(BlockPos.ORIGIN).write();
assertEquals(1 + 8 + 8, buffer.array().length);
}
@@ -38,7 +38,7 @@ public class SpatialDimensionExtraDataTest {
*/
@Test
public void testHandleInvalidFormatVersion() {
PacketByteBuf buffer = new SpatialDimensionExtraData(BlockPos.ZERO).write();
PacketByteBuf buffer = new SpatialDimensionExtraData(BlockPos.ORIGIN).write();
buffer.writerIndex(0);
buffer.writeByte(5);