mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed ContainerBlocks spilling items when edited.
Fixed ContainerBlocks spilling items when edited, which caused an Item Duplication Exploit. http://youtrack.sk89q.com/issue/WORLDEDIT-2381 - [Now Resolved]
This commit is contained in:
parent
e5d34a9d2c
commit
0f77cb357b
@ -194,7 +194,7 @@ public class EditSession {
|
|||||||
final int existing = world.getBlockType(pt);
|
final int existing = world.getBlockType(pt);
|
||||||
|
|
||||||
// Clear the container block so that it doesn't drop items
|
// Clear the container block so that it doesn't drop items
|
||||||
if (BlockType.isContainerBlock(existing) && blockBag == null) {
|
if (BlockType.isContainerBlock(existing)) {
|
||||||
world.clearContainerBlockContents(pt);
|
world.clearContainerBlockContents(pt);
|
||||||
// Ice turns until water so this has to be done first
|
// Ice turns until water so this has to be done first
|
||||||
} else if (existing == BlockID.ICE) {
|
} else if (existing == BlockID.ICE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user