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:
parent
05a40e4a95
commit
3d6a24dca0
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user