2018-09-15 11:16:42 +02:00
|
|
|
--- a/net/minecraft/server/CommandSummon.java
|
|
|
|
+++ b/net/minecraft/server/CommandSummon.java
|
2018-12-25 22:00:00 +01:00
|
|
|
@@ -30,7 +30,7 @@
|
2018-09-15 11:16:42 +02:00
|
|
|
if (EntityTypes.getName(EntityTypes.LIGHTNING_BOLT).equals(minecraftkey)) {
|
|
|
|
EntityLightning entitylightning = new EntityLightning(commandlistenerwrapper.getWorld(), vec3d.x, vec3d.y, vec3d.z, false);
|
|
|
|
|
|
|
|
- commandlistenerwrapper.getWorld().strikeLightning(entitylightning);
|
|
|
|
+ commandlistenerwrapper.getWorld().strikeLightning(entitylightning, org.bukkit.event.weather.LightningStrikeEvent.Cause.COMMAND); // CraftBukkit
|
2019-05-27 22:30:00 +02:00
|
|
|
commandlistenerwrapper.sendMessage(new ChatMessage("commands.summon.success", new Object[]{entitylightning.getScoreboardDisplayName()}), true);
|
2018-09-15 11:16:42 +02:00
|
|
|
return 1;
|
|
|
|
} else {
|