[SPIGOT-240] BlockPhysicsEvent Bugg Created: 18/Dec/14  Updated: 30/Jan/15  Resolved: 30/Jan/15

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Zanax Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.8, bug, spigot


 Description   

BlockPhysicsEvent doesn't cancel blocks that get updated because of an check, like if the block is near water (sugercane,wheat,pumpkin) or is placed on dirt/sand (sugercane,wheat,pumpkin). It seems like there is missing a BlockPhysicsEvent call on this behavior.

#Test Scenerio:

  • Cancel BlockPhysicsEvent
  • Place a 3x3 Square of TypeID 59 (wheat_block)
  • Catch ItemSpawnEvent

You will see that BlockPhysicsEvent will get denied and the structure of 3x3 will get placed, but at a random tick rate the blocks get updated and an seed will get dropped and the ItemSpawnEvent get called and the BlockPhysicsEvent which was canceled. The block disappears and makes it not work like it should.

I've tested this as well with Tall_Grass, same result as above.

#Technical

  • BlockPlant#e - It changes blocks, but don't call any events.


 Comments   
Comment by Zanax [ 18/Dec/14 ]

@FearThe1337
It still occur, git-Spigot-47b1dff-f233e7d

Comment by FearThe1337 [ 18/Dec/14 ]

Please update, if the issue is still active in the latest version please state so.

Comment by SpigotMC [ 18/Dec/14 ]

Your build is not the latest and therefor may be the reason you are having this issue. Spigot is 37 version(s) behind. CraftBukkit is 91 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Mon Apr 21 20:53:39 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.