Commits
md_5 authored 9a9c2234a4f
175 175 | CraftBlock block = getBlock(); |
176 176 | |
177 177 | if (block.getType() != getType()) { |
178 178 | if (!force) { |
179 179 | return false; |
180 180 | } |
181 181 | } |
182 182 | |
183 183 | IBlockData newBlock = this.data; |
184 184 | block.setTypeAndData(newBlock, applyPhysics); |
185 + | world.getHandle().notify( |
186 + | position, |
187 + | block.getNMS(), |
188 + | newBlock, |
189 + | 3 |
190 + | ); |
185 191 | |
186 192 | // Update levers etc |
187 193 | if (false && applyPhysics && getData() instanceof Attachable) { // Call does not map to new API |
188 194 | world.getHandle().applyPhysics(position.shift(CraftBlock.blockFaceToNotch(((Attachable) getData()).getAttachedFace())), newBlock.getBlock()); |
189 195 | } |
190 196 | |
191 197 | return true; |
192 198 | } |
193 199 | |
194 200 | |