End portal player position fix
This commit is contained in:
parent
ca31048ca8
commit
4759471239
2 changed files with 11 additions and 11 deletions
|
@ -107,7 +107,7 @@ public class EndPortalBlock extends NetherPortalBlock implements IRenderTypeable
|
|||
checkPos = this.findCenter(world, checkPos, state.get(AXIS));
|
||||
if (state.get(AXIS).equals(Direction.Axis.X)) {
|
||||
if (entity.getMovementDirection().getAxis() == Direction.Axis.X) {
|
||||
offStep = entity.getMovementDirection() == Direction.EAST ? -1 : 1;
|
||||
offStep = entity.getMovementDirection() == Direction.EAST ? 1 : -1;
|
||||
float rotation = entity.applyRotation(BlockRotation.CLOCKWISE_90);
|
||||
entity.yaw = rotation;
|
||||
} else {
|
||||
|
|
|
@ -161,20 +161,20 @@ public class CraftingRecipes {
|
|||
GridRecipe.make("charnia_red_dye", Items.RED_DYE).setList("#").addMaterial('#', EndBlocks.CHARNIA_RED).build();
|
||||
|
||||
GridRecipe.make("respawn_obelisk", EndBlocks.RESPAWN_OBELISK)
|
||||
.setShape("CSC", "CSC", "AAA")
|
||||
.addMaterial('C', EndBlocks.AURORA_CRYSTAL)
|
||||
.addMaterial('S', EndItems.ETERNAL_CRYSTAL)
|
||||
.addMaterial('A', EndBlocks.AMBER_BLOCK)
|
||||
.build();
|
||||
.setShape("CSC", "CSC", "AAA")
|
||||
.addMaterial('C', EndBlocks.AURORA_CRYSTAL)
|
||||
.addMaterial('S', EndItems.ETERNAL_CRYSTAL)
|
||||
.addMaterial('A', EndBlocks.AMBER_BLOCK)
|
||||
.build();
|
||||
}
|
||||
|
||||
private static void registerLantern(String name, Block lantern, Block slab) {
|
||||
GridRecipe.make(name, lantern)
|
||||
.setShape("S", "#", "S")
|
||||
.addMaterial('#', EndItems.CRYSTAL_SHARDS)
|
||||
.addMaterial('S', slab)
|
||||
.setGroup("end_stone_lanterns")
|
||||
.build();
|
||||
.setShape("S", "#", "S")
|
||||
.addMaterial('#', EndItems.CRYSTAL_SHARDS)
|
||||
.addMaterial('S', slab)
|
||||
.setGroup("end_stone_lanterns")
|
||||
.build();
|
||||
}
|
||||
|
||||
public static void registerPedestal(String name, Block pedestal, Block slab, Block pillar) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue