Skip to content

Commit

Permalink
add rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yor42 committed Nov 25, 2024
1 parent 698dee2 commit 763c7e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/lulan/shincolle/block/BlockWaypoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public boolean removedByPlayer(IBlockState state, World world, BlockPos pos, Ent
//check owner
if (EntityHelper.checkOP(player) || BlockHelper.checkTileOwner(player, world.getTileEntity(pos))) {
//server side
if (!world.isRemote) {
if (!world.isRemote && !player.isCreative()) {
ItemStack stack = new ItemStack(Item.getItemFromBlock(this));

//inventory is full, drop item onto ground
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public void render(TileEntityWaypoint te, double x, double y, double z, float pa
GlStateManager.pushMatrix();
GlStateManager.depthMask(ConfigHandler.vortexDepth);
GlStateManager.translate((float) x + 0.5F, (float) y + 0.5F, (float) z + 0.5F);
GlStateManager.rotate(yaw * 57.2957F, 0F, 1F, 0F);
GlStateManager.rotate(pitch * 57.2957F, 1F, 0F, 0F);
this.model_waypoint.render(0.03125F);
GlStateManager.depthMask(true);
GlStateManager.popMatrix();
Expand Down

0 comments on commit 763c7e3

Please sign in to comment.