Skip to content

Commit

Permalink
stop Right Click Interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshy2002 committed Dec 15, 2024
1 parent db68a11 commit 5a01adc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/tb/common/block/BlockTBPlant.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ public void onBlockPlacedBy(World worldIn, int x, int y, int z, EntityLivingBase
@Override
public boolean onBlockActivated(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer, int aSide, float pX,
float pY, float pZ) {
if (aWorld.getBlock(aX, aY, aZ) instanceof BlockAshroom) {
// Do nothing if it's Primal Shroom
return false;
}
int aMeta = aWorld.getBlockMetadata(aX, aY, aZ);
// check for Growth Stage
if (aMeta >= growthStages - 1) {
Expand Down

0 comments on commit 5a01adc

Please sign in to comment.