Rename and clean up MapleCoconut

This commit is contained in:
P0nk
2021-09-09 21:54:29 +02:00
parent 2332458ed9
commit 219a2cdb3f
3 changed files with 65 additions and 66 deletions

View File

@@ -25,7 +25,7 @@ package net.server.channel.handlers;
import client.Client;
import net.AbstractPacketHandler;
import net.packet.InPacket;
import server.events.gm.MapleCoconut;
import server.events.gm.Coconut;
import server.events.gm.MapleCoconuts;
import server.maps.MapleMap;
import tools.PacketCreator;
@@ -42,7 +42,7 @@ public final class CoconutHandler extends AbstractPacketHandler {
*/
int id = p.readShort();
MapleMap map = c.getPlayer().getMap();
MapleCoconut event = map.getCoconut();
Coconut event = map.getCoconut();
MapleCoconuts nut = event.getCoconut(id);
if (!nut.isHittable()){
return;