mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 17:43:44 +01:00 
			
		
		
		
	Fix initialization of GlobalFlagContainer
This commit is contained in:
		| @@ -83,7 +83,7 @@ import java.util.Map; | |||||||
| public final class GlobalFlagContainer extends FlagContainer { | public final class GlobalFlagContainer extends FlagContainer { | ||||||
|  |  | ||||||
|     @Getter private static final GlobalFlagContainer instance = new GlobalFlagContainer(); |     @Getter private static final GlobalFlagContainer instance = new GlobalFlagContainer(); | ||||||
|     private static Map<String, Class<?>> stringClassMap = new HashMap<>(); |     private static Map<String, Class<?>> stringClassMap; | ||||||
|  |  | ||||||
|     private GlobalFlagContainer() { |     private GlobalFlagContainer() { | ||||||
|         super(null, (flag, type) -> { |         super(null, (flag, type) -> { | ||||||
| @@ -91,6 +91,7 @@ public final class GlobalFlagContainer extends FlagContainer { | |||||||
|                 stringClassMap.put(flag.getName().toLowerCase(Locale.ENGLISH), flag.getClass()); |                 stringClassMap.put(flag.getName().toLowerCase(Locale.ENGLISH), flag.getClass()); | ||||||
|             } |             } | ||||||
|         }); |         }); | ||||||
|  |         stringClassMap = new HashMap<>(); | ||||||
|         // Register all default flags here |         // Register all default flags here | ||||||
|         // Boolean flags |         // Boolean flags | ||||||
|         this.addFlag(ExplosionFlag.EXPLOSION_FALSE); |         this.addFlag(ExplosionFlag.EXPLOSION_FALSE); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Hannes Greule
					Hannes Greule