update ExplosionBlockListener to preserve entity damage while clearing explosion block effects.
Bump version to 1.0.2
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>dev.tatsi.reloadmc.smp</groupId>
|
||||
<artifactId>reloadmc_smp</artifactId>
|
||||
<version>1.0.1</version>
|
||||
<version>1.0.2</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>reloadmc_smp</name>
|
||||
|
||||
@@ -15,7 +15,9 @@ public class ExplosionBlockListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||
public void onCreeperExplode(EntityExplodeEvent event) {
|
||||
if (event.getEntity() instanceof Creeper) {
|
||||
event.setCancelled(true);
|
||||
// Remove all blocks from the explosion effect,
|
||||
// explosion sound + damage to entities will still happen.
|
||||
event.blockList().clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: ReloadMCSMP
|
||||
version: '1.0.1'
|
||||
version: '1.0.2'
|
||||
main: dev.tatsi.reloadmc.smp.ReloadMC
|
||||
api-version: '1.21'
|
||||
prefix: CorePlugin
|
||||
@@ -11,4 +11,3 @@ commands:
|
||||
deathstats:
|
||||
description: View death statistics for yourself or another player
|
||||
usage: /deathstats [player]
|
||||
aliases: [deaths, deathcount]
|
||||
|
||||
Reference in New Issue
Block a user