mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
2.1.17 - Fix drowned mob spawner logic
This commit is contained in:
parent
bb46b2a6ac
commit
8994594ed4
@ -7,6 +7,10 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
|
Version 2.1.17
|
||||||
|
Fixed a logic error that resulted in Drowned giving no XP
|
||||||
|
Fixed a bug that resulted in mob spawner entities to not be marked for no xp after being transforming into Drowned
|
||||||
|
|
||||||
Version 2.1.16
|
Version 2.1.16
|
||||||
Breaking Kelp should now count the whole plant for XP
|
Breaking Kelp should now count the whole plant for XP
|
||||||
Spawned Mobs that are not supposed to award XP will no longer reward XP once transformed (ie: drowned)
|
Spawned Mobs that are not supposed to award XP will no longer reward XP once transformed (ie: drowned)
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.16</version>
|
<version>2.1.17</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -58,7 +58,7 @@ public class EntityListener implements Listener {
|
|||||||
public void onEntityTransform(EntityTransformEvent event)
|
public void onEntityTransform(EntityTransformEvent event)
|
||||||
{
|
{
|
||||||
//Transfer metadata keys from mob-spawned mobs to new mobs
|
//Transfer metadata keys from mob-spawned mobs to new mobs
|
||||||
if(event.getEntity().getMetadata(mcMMO.entityMetadataKey) == null || event.getEntity().getMetadata(mcMMO.entityMetadataKey).size() <= 0)
|
if(event.getEntity().getMetadata(mcMMO.entityMetadataKey) != null || event.getEntity().getMetadata(mcMMO.entityMetadataKey).size() >= 1)
|
||||||
{
|
{
|
||||||
for(Entity entity : event.getTransformedEntities())
|
for(Entity entity : event.getTransformedEntities())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user