Update forgegradle and minecraftforge
Switch to official mappings
This commit is contained in:
@@ -40,7 +40,7 @@ public class UsercontentAPI
|
||||
{
|
||||
if(object != null)
|
||||
{
|
||||
Minecraft.getInstance().ingameGUI.func_238450_a_(ChatType.CHAT, new StringTextComponent(object.toString()), Util.DUMMY_UUID);
|
||||
Minecraft.getInstance().gui.handleChat(ChatType.CHAT, new StringTextComponent(object.toString()), Util.NIL_UUID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ public class UsercontentLoader
|
||||
private static boolean isValidPathName(Path path)
|
||||
{
|
||||
String name = path.getFileName().toString();
|
||||
boolean valid = ResourceLocation.isResouceNameValid(name);
|
||||
boolean valid = ResourceLocation.isValidResourceLocation(name);
|
||||
|
||||
if(!valid)
|
||||
{
|
||||
|
||||
@@ -113,9 +113,9 @@ public class WidgetFactory extends AbstractWidgetFactory
|
||||
widget.getLayout().getHeight(),
|
||||
TextUtils.formatNonnull(widget.getText())
|
||||
);
|
||||
textfield.setValidator(Predicates.notNull());
|
||||
textfield.setText(this.getApi().getValue(widget.getAttributes().getId()));
|
||||
textfield.setResponder(this.getActionHandlerFactory().createResponder(string -> textfield.getText(), widget.getAttributes().getId(), widget.getAction()));
|
||||
textfield.setFilter(Predicates.notNull());
|
||||
textfield.setValue(this.getApi().getValue(widget.getAttributes().getId()));
|
||||
textfield.setResponder(this.getActionHandlerFactory().createResponder(string -> textfield.getValue(), widget.getAttributes().getId(), widget.getAction()));
|
||||
|
||||
return textfield;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user