Fix #334
This commit is contained in:
		@@ -136,7 +136,7 @@ public final class GateReader {
 | 
				
			|||||||
                    return;
 | 
					                    return;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                Material material = Material.getMaterial(value);
 | 
					                Material material = Material.matchMaterial(value);
 | 
				
			||||||
                if (material != null) {
 | 
					                if (material != null) {
 | 
				
			||||||
                    //Register the map between the read symbol and the corresponding material
 | 
					                    //Register the map between the read symbol and the corresponding material
 | 
				
			||||||
                    characterMaterialMap.put(symbol, material);
 | 
					                    characterMaterialMap.put(symbol, material);
 | 
				
			||||||
@@ -183,7 +183,7 @@ public final class GateReader {
 | 
				
			|||||||
    public static Material readGateConfig(Map<String, String> config, String fileName, String key,
 | 
					    public static Material readGateConfig(Map<String, String> config, String fileName, String key,
 | 
				
			||||||
                                          Material defaultMaterial) {
 | 
					                                          Material defaultMaterial) {
 | 
				
			||||||
        if (config.containsKey(key)) {
 | 
					        if (config.containsKey(key)) {
 | 
				
			||||||
            Material material = Material.getMaterial(config.get(key));
 | 
					            Material material = Material.matchMaterial(config.get(key));
 | 
				
			||||||
            if (material != null) {
 | 
					            if (material != null) {
 | 
				
			||||||
                return material;
 | 
					                return material;
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user