mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-26 04:25:30 +01:00
Updated some messaged and added a return
This commit is contained in:
parent
412dd428dd
commit
9888d6ec19
@ -12,7 +12,7 @@ import java.lang.reflect.Method;
|
|||||||
* Created by on 02/08/2016.
|
* Created by on 02/08/2016.
|
||||||
*
|
*
|
||||||
* I don't think there will be any others supported other than bukkit but if there are its not just the compat that will
|
* I don't think there will be any others supported other than bukkit but if there are its not just the compat that will
|
||||||
* need to change.
|
* need to change unless it has a different package for the minecraft server parts.
|
||||||
*
|
*
|
||||||
* @author sekwah41
|
* @author sekwah41
|
||||||
*/
|
*/
|
||||||
|
@ -55,10 +55,6 @@ public class PortalProtect implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
public void onExplosion(EntityExplodeEvent event) {
|
public void onExplosion(EntityExplodeEvent event) {
|
||||||
|
|
||||||
if (!Portal.portalsActive) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
List<Block> blockList = event.blockList();
|
List<Block> blockList = event.blockList();
|
||||||
for (int i = 0; i < blockList.size(); i++) {
|
for (int i = 0; i < blockList.size(); i++) {
|
||||||
Block block = blockList.get(i);
|
Block block = blockList.get(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user