mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
MobArena plugin for Minecraft
48a85a7e85
The blockList() call returns the actual List<Block> object in the explode event, which means it'll be shared between the the fake event and the original event. As a result, the call to blockList().clear() will clear the shared list, and the following call to blockList().addAll(fake.blockList()) results in trying to add the empty list to itself. This commit makes sure to copy the original event's block list before sending it to the fake event. |
||
---|---|---|
src/main | ||
.gitignore | ||
LICENSE.md | ||
pom.xml | ||
README.md |