mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Merge branch 'master' of github.com:mcMMO-Dev/mcMMO
This commit is contained in:
		@@ -163,7 +163,9 @@ public class mcEntityListener implements Listener {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    @EventHandler (priority = EventPriority.MONITOR)
 | 
					    @EventHandler (priority = EventPriority.MONITOR)
 | 
				
			||||||
    public void onCreatureSpawn(CreatureSpawnEvent event) {
 | 
					    public void onCreatureSpawn(CreatureSpawnEvent event) {
 | 
				
			||||||
        if (event.getSpawnReason().equals(SpawnReason.SPAWNER) && !LoadProperties.xpGainsMobSpawners) {
 | 
					        SpawnReason reason = event.getSpawnReason();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ((reason.equals(SpawnReason.SPAWNER) || reason.equals(SpawnReason.SPAWNER_EGG)) && !LoadProperties.xpGainsMobSpawners) {
 | 
				
			||||||
            event.getEntity().setMetadata("mcmmoFromMobSpawner", new FixedMetadataValue(plugin, true));
 | 
					            event.getEntity().setMetadata("mcmmoFromMobSpawner", new FixedMetadataValue(plugin, true));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user