|
7 | 7 | import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap; |
8 | 8 | import net.minecraft.entity.Entity; |
9 | 9 | import net.minecraft.entity.EntityType; |
10 | | -import net.minecraft.entity.projectile.FireworkRocketEntity; |
11 | | -import net.minecraft.world.World; |
12 | | -import xyz.nucleoid.plasmid.game.GameWorld; |
13 | | -import xyz.nucleoid.plasmid.game.event.*; |
14 | | -import xyz.nucleoid.plasmid.game.player.JoinResult; |
15 | | -import xyz.nucleoid.plasmid.game.rule.GameRule; |
16 | | -import xyz.nucleoid.plasmid.game.rule.RuleResult; |
17 | | -import xyz.nucleoid.plasmid.util.ItemStackBuilder; |
18 | 10 | import net.minecraft.entity.EquipmentSlot; |
19 | 11 | import net.minecraft.entity.damage.DamageSource; |
| 12 | +import net.minecraft.entity.projectile.FireworkRocketEntity; |
20 | 13 | import net.minecraft.item.ItemStack; |
21 | 14 | import net.minecraft.item.Items; |
22 | 15 | import net.minecraft.network.packet.s2c.play.TitleS2CPacket; |
|
35 | 28 | import net.minecraft.util.math.MathHelper; |
36 | 29 | import net.minecraft.util.math.Vec3d; |
37 | 30 | import net.minecraft.world.GameMode; |
| 31 | +import xyz.nucleoid.plasmid.game.GameWorld; |
| 32 | +import xyz.nucleoid.plasmid.game.event.GameCloseListener; |
| 33 | +import xyz.nucleoid.plasmid.game.event.GameOpenListener; |
| 34 | +import xyz.nucleoid.plasmid.game.event.GameTickListener; |
| 35 | +import xyz.nucleoid.plasmid.game.event.OfferPlayerListener; |
| 36 | +import xyz.nucleoid.plasmid.game.event.PlayerAddListener; |
| 37 | +import xyz.nucleoid.plasmid.game.event.PlayerDamageListener; |
| 38 | +import xyz.nucleoid.plasmid.game.event.PlayerDeathListener; |
| 39 | +import xyz.nucleoid.plasmid.game.event.PlayerRemoveListener; |
| 40 | +import xyz.nucleoid.plasmid.game.player.JoinResult; |
| 41 | +import xyz.nucleoid.plasmid.game.rule.GameRule; |
| 42 | +import xyz.nucleoid.plasmid.game.rule.RuleResult; |
| 43 | +import xyz.nucleoid.plasmid.util.ItemStackBuilder; |
| 44 | + |
38 | 45 | import javax.annotation.Nullable; |
39 | | -import java.util.*; |
| 46 | +import java.util.ArrayList; |
| 47 | +import java.util.Iterator; |
| 48 | +import java.util.List; |
| 49 | +import java.util.Map; |
| 50 | +import java.util.Set; |
40 | 51 |
|
41 | 52 | public final class LoopDeLoopActive { |
42 | 53 | private final GameWorld gameWorld; |
@@ -259,7 +270,7 @@ private void tickPlayers(long time) { |
259 | 270 | // |
260 | 271 | // If they are moving slow, there may not be enough precision to detect this, so the slow path is fallen back |
261 | 272 | // to, simply checking if the end coordinate is inside of the hoop. |
262 | | - if (hoop.intersectsSegment(state.lastPos, player.getPos()) || hoop.contains(player.getBlockPos())) { |
| 273 | + if (hoop.intersectsSegment(state.lastPos, player.getPos())) { |
263 | 274 | player.playSound(SoundEvents.ENTITY_EXPERIENCE_ORB_PICKUP, SoundCategory.PLAYERS, 1.0F, 1.0F); |
264 | 275 | giveRocket(player, 1); |
265 | 276 | state.lastHoop += 1; |
|
0 commit comments