0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Update to 22w44a

This commit is contained in:
Alexander01998 2022-11-03 16:05:38 +01:00
parent 05a40e4a95
commit 3d6a24dca0
4 changed files with 7 additions and 6 deletions

View File

@ -72,7 +72,7 @@ public final class ItemGeneratorHack extends Hack implements UpdateListener
{
// Not sure if it's possible to get an empty optional here,
// but if so it will just retry.
Optional<RegistryEntry<Item>> optional = Optional.empty();
Optional<RegistryEntry.Reference<Item>> optional = Optional.empty();
while(optional.isEmpty())
optional = Registry.ITEM.getRandom(random);

View File

@ -57,7 +57,7 @@ public final class KaboomHack extends Hack implements UpdateListener
// do explosion particles
new Explosion(MC.world, MC.player, MC.player.getX(), MC.player.getY(),
MC.player.getZ(), 6F, false, Explosion.DestructionType.NONE)
MC.player.getZ(), 6F, false, Explosion.DestructionType.KEEP)
.affectWorld(true);
// get valid blocks

View File

@ -99,7 +99,7 @@ public final class NoChatReportsOtf extends OtherFeature
public MessageIndicator modifyIndicator(Text message,
MessageSignatureData signature, MessageIndicator indicator)
{
if(!WurstClient.INSTANCE.isEnabled())
if(!WurstClient.INSTANCE.isEnabled() || MC.isInSingleplayer())
return indicator;
if(indicator != null || signature == null)
@ -120,7 +120,8 @@ public final class NoChatReportsOtf extends OtherFeature
public boolean isActive()
{
return isEnabled() && WurstClient.INSTANCE.isEnabled();
return isEnabled() && WurstClient.INSTANCE.isEnabled()
&& !MC.isInSingleplayer();
}
@Override

View File

@ -29,8 +29,8 @@
"depends": {
"fabricloader": ">=0.14.10",
"fabric-api": ">=0.65.1",
"minecraft": "~1.19.3-alpha.22.43.a",
"fabric-api": ">=0.65.3",
"minecraft": "~1.19.3-alpha.22.44.a",
"java": ">=17"
},
"suggests": {