public void handle(ActionEvent event)
	{
		if(event.getSource() == create)
		{
			try
			{
				AssetType type = this.type.getSelectionModel().getSelectedItem();
				Path af = mp.mod.getAssetFolder();
				Path p = af.resolve(name.getText() + "." + type.getFileExtension());
				p = af.relativize(p);
				ModToolkit.log.info(p.toString());
				Asset a = Asset.createAsset(p, type, af);
				if(a instanceof JsonAsset)
				{
					JsonObject templ = main.data.getJsonTemplate(type);
					if(templ != null)
					{
						JsonAsset ja = (JsonAsset) a;
						JsonObject jo = ja.getObject();
						for(Member m: templ)
						{
							jo.add(m.getName(), m.getValue());
						}
					}
				}
				a.save();
				mp.mod.getAssets().add(a);
				mp.assets.list.getSelectionModel().select(a);
			}
			catch(Throwable t)
			{
				Util.handleError(t, "An error occurred while creating an asset", 
					"Failed to create asset");
			}
			close();
		}
		else
		{
			close();
		}
	}