I mean yeah that’s how international conventions work. There’s not really a thing of “international law”, just a bunch of countries that have all agreed to abide by restrictions. If a country chooses not to follow an “international law”, all you can do is try to coerce them or invade.
I thought Hamas was made with chickpeas?