ca72710937
DimensionType is not unique per Dimension. See DimensionManager for more details. Vanilla now has a chunk loading system, so Forge's will need to be deprecated/adapted.
19 lines
982 B
Diff
19 lines
982 B
Diff
--- a/net/minecraft/command/Commands.java
|
|
+++ b/net/minecraft/command/Commands.java
|
|
@@ -193,7 +193,15 @@
|
|
|
|
try {
|
|
try {
|
|
- int lvt_4_3_ = this.field_197062_b.execute(stringreader, p_197059_1_);
|
|
+ com.mojang.brigadier.ParseResults<CommandSource> parse = this.field_197062_b.parse(stringreader, p_197059_1_);
|
|
+ net.minecraftforge.event.CommandEvent event = new net.minecraftforge.event.CommandEvent(parse);
|
|
+ if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) {
|
|
+ if (event.getException() != null) {
|
|
+ com.google.common.base.Throwables.throwIfUnchecked(event.getException());
|
|
+ }
|
|
+ return 1;
|
|
+ }
|
|
+ int lvt_4_3_ = this.field_197062_b.execute(event.getParseResults());
|
|
return lvt_4_3_;
|
|
} catch (CommandException commandexception) {
|
|
p_197059_1_.func_197021_a(commandexception.func_197003_a());
|