1.14.2 Update
This commit is contained in:
parent
72c2d8ba26
commit
fb3d6e9a01
@ -1,13 +1,13 @@
|
|||||||
--- a/net/minecraft/command/impl/GameModeCommand.java
|
--- a/net/minecraft/command/impl/GameModeCommand.java
|
||||||
+++ b/net/minecraft/command/impl/GameModeCommand.java
|
+++ b/net/minecraft/command/impl/GameModeCommand.java
|
||||||
@@ -48,6 +48,10 @@
|
@@ -49,6 +49,10 @@
|
||||||
|
|
||||||
private static int func_198484_a(CommandContext<CommandSource> p_198484_0_, Collection<ServerPlayerEntity> p_198484_1_, GameType p_198484_2_) {
|
private static int func_198484_a(CommandContext<CommandSource> p_198484_0_, Collection<ServerPlayerEntity> p_198484_1_, GameType p_198484_2_) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
+
|
|
||||||
+ if (p_198484_2_ == GameType.CREATIVE) { //Patched
|
+ if (p_198484_2_ == GameType.CREATIVE) { //Patched
|
||||||
+ p_198484_0_.getSource().func_197030_a(new TranslationTextComponent("<Server> Creative mode? What are you, a cheater?"), false); //Patched
|
+ p_198484_0_.getSource().func_197030_a(new TranslationTextComponent("<Server> Creative mode? What are you, a cheater?"), false); //Patched
|
||||||
+ } //Patched
|
+ } //Patched
|
||||||
|
+
|
||||||
for(ServerPlayerEntity serverplayerentity : p_198484_1_) {
|
for(ServerPlayerEntity serverplayerentity : p_198484_1_) {
|
||||||
if (serverplayerentity.field_71134_c.func_73081_b() != p_198484_2_) {
|
if (serverplayerentity.field_71134_c.func_73081_b() != p_198484_2_) {
|
||||||
|
serverplayerentity.func_71033_a(p_198484_2_);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
+import party._2a03.server.Config; //Patched
|
+import party._2a03.server.Config; //Patched
|
||||||
|
|
||||||
public abstract class MinecraftServer extends RecursiveEventLoop<TickDelayedTask> implements ISnooperInfo, ICommandExecutor, AutoCloseable, Runnable {
|
public abstract class MinecraftServer extends RecursiveEventLoop<TickDelayedTask> implements ISnooperInfo, ICommandSource, AutoCloseable, Runnable {
|
||||||
private static final Logger field_147145_h = LogManager.getLogger();
|
private static final Logger field_147145_h = LogManager.getLogger();
|
||||||
@@ -810,6 +811,7 @@
|
@@ -810,6 +811,7 @@
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user